Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Build for Dev Branch and Support High Resolutions (High DPI) #730

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/away3d/cameras/lenses/PerspectiveLens.as
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ package away3d.cameras.lenses
*
* @param fieldOfView The vertical field of view of the projection.
*/
public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = CoordinateSystem.LEFT_HANDED)
public function PerspectiveLens(fieldOfView:Number = 60, coordinateSystem:uint = 0)
{
super();

Expand Down
4 changes: 2 additions & 2 deletions src/away3d/core/managers/Stage3DProxy.as
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ package away3d.core.managers
_antiAlias = antiAlias;

if (_context3D)
_context3D.configureBackBuffer(backBufferWidth, backBufferHeight, antiAlias, _backBufferEnableDepthAndStencil);
_context3D.configureBackBuffer(backBufferWidth, backBufferHeight, antiAlias, _backBufferEnableDepthAndStencil, true, true);
}

/*
Expand Down Expand Up @@ -526,7 +526,7 @@ package away3d.core.managers
// which they may not have been if View3D.render() has yet to be
// invoked for the first time.
if (_backBufferWidth && _backBufferHeight)
_context3D.configureBackBuffer(_backBufferWidth, _backBufferHeight, _antiAlias, _backBufferEnableDepthAndStencil);
_context3D.configureBackBuffer(_backBufferWidth, _backBufferHeight, _antiAlias, _backBufferEnableDepthAndStencil, true, true);

// Dispatch the appropriate event depending on whether context was
// created for the first time or recreated after a device loss.
Expand Down