Explorar el Código

PMREMGenerator: Fix replacing render targets with different heights (#25301)

Jordy van Dortmont hace 3 años
padre
commit
6c86066b5d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/extras/PMREMGenerator.js

+ 1 - 1
src/extras/PMREMGenerator.js

@@ -261,7 +261,7 @@ class PMREMGenerator {
 
 		const cubeUVRenderTarget = _createRenderTarget( width, height, params );
 
-		if ( this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== width ) {
+		if ( this._pingPongRenderTarget === null || this._pingPongRenderTarget.width !== width || this._pingPongRenderTarget.height !== height ) {
 
 			if ( this._pingPongRenderTarget !== null ) {
 

粤ICP备19079148号