Explorar o código

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

Jordy van Dortmont %!s(int64=2) %!d(string=hai) anos
pai
achega
6c86066b5d
Modificáronse 1 ficheiros con 1 adicións e 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 ) {