Explorar o código

WebGLRenderer: Fixed currentWidth/currentHeight.

Mr.doob %!s(int64=9) %!d(string=hai) anos
pai
achega
3d38cc3a2d
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/renderers/WebGLRenderer.js

+ 2 - 2
src/renderers/WebGLRenderer.js

@@ -3423,8 +3423,8 @@ THREE.WebGLRenderer = function ( parameters ) {
 
 		}
 
-		_currentWidth = width;
-		_currentHeight = height;
+		_currentWidth = viewport.width;
+		_currentHeight = viewport.height;
 
 	};