Parcourir la source

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

Fixes Uncaught TypeError: Cannot read properties of undefined (reading 'dispose')
Mounier Florian il y a 2 ans
Parent
commit
937edb5f5b
1 fichiers modifiés avec 0 ajouts et 1 suppressions
  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.normalRenderTarget.dispose();
 
-		this.depthMaterial.dispose();
 		this.normalMaterial.dispose();
 		this.saoMaterial.dispose();
 		this.vBlurMaterial.dispose();