From e69c3b99ee71579ac56b0ac50f6fac37538e540a Mon Sep 17 00:00:00 2001 From: Paulo Medeiros Date: Mon, 3 Jun 2024 14:02:12 +0000 Subject: [PATCH] Fix Build and High DPI To use High DPI on AIR, add high to the descriptor --- src/away3d/cameras/lenses/PerspectiveLens.as | 2 +- src/away3d/core/managers/Stage3DProxy.as | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/away3d/cameras/lenses/PerspectiveLens.as b/src/away3d/cameras/lenses/PerspectiveLens.as index a17d715bc..f8cfc82c3 100644 --- a/src/away3d/cameras/lenses/PerspectiveLens.as +++ b/src/away3d/cameras/lenses/PerspectiveLens.as @@ -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(); diff --git a/src/away3d/core/managers/Stage3DProxy.as b/src/away3d/core/managers/Stage3DProxy.as index b2605019e..6bb9e43ca 100644 --- a/src/away3d/core/managers/Stage3DProxy.as +++ b/src/away3d/core/managers/Stage3DProxy.as @@ -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); } /* @@ -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.