Browse Source

Remove dispose() of now removed depthMaterial (#26946)

Fixes Uncaught TypeError: Cannot read properties of undefined (reading 'dispose')
Mounier Florian 1 year ago
parent
commit
937edb5f5b
1 changed files with 0 additions and 1 deletions
  1. 0 1
      examples/jsm/postprocessing/SAOPass.js

+ 0 - 1
examples/jsm/postprocessing/SAOPass.js

@@ -314,7 +314,6 @@ class SAOPass extends Pass {
 		this.blurIntermediateRenderTarget.dispose();
 		this.blurIntermediateRenderTarget.dispose();
 		this.normalRenderTarget.dispose();
 		this.normalRenderTarget.dispose();
 
 
-		this.depthMaterial.dispose();
 		this.normalMaterial.dispose();
 		this.normalMaterial.dispose();
 		this.saoMaterial.dispose();
 		this.saoMaterial.dispose();
 		this.vBlurMaterial.dispose();
 		this.vBlurMaterial.dispose();