Browse Source

PMREMGenerator: Fix dispose(). (#23697)

Michael Herzog 3 năm trước cách đây
mục cha
commit
92cbfd26a1
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();