Explorar o código

Minor refactor for clarity

WestLangley %!s(int64=5) %!d(string=hai) anos
pai
achega
94d2721c7b
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      src/extras/PMREMGenerator.js

+ 1 - 2
src/extras/PMREMGenerator.js

@@ -208,8 +208,7 @@ PMREMGenerator.prototype = {
 		this._pingPongRenderTarget.dispose();
 		this._renderer.setRenderTarget( _oldTarget );
 		outputTarget.scissorTest = false;
-		// reset viewport and scissor
-		outputTarget.setSize( outputTarget.width, outputTarget.height );
+		_setViewport( outputTarget, 0, 0, outputTarget.width, outputTarget.height );
 
 	},