Răsfoiți Sursa

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

Jordy van Dortmont 3 ani în urmă
părinte
comite
6c86066b5d
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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 );
 		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 ) {
 			if ( this._pingPongRenderTarget !== null ) {
 
 

粤ICP备19079148号