Explorar o código

PMREMGenerator: Fix dispose(). (#23697)

Michael Herzog %!s(int64=3) %!d(string=hai) anos
pai
achega
92cbfd26a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/extras/PMREMGenerator.js

+ 1 - 1
src/extras/PMREMGenerator.js

@@ -201,7 +201,7 @@ class PMREMGenerator {
 
 	_dispose() {
 
-		this._blurMaterial.dispose();
+		if ( this._blurMaterial !== null ) this._blurMaterial.dispose();
 
 		if ( this._pingPongRenderTarget !== null ) this._pingPongRenderTarget.dispose();