Przeglądaj źródła

Merge pull request #18149 from drcmda/ssaop

remove SSAOPass.quad.dispose, fixes #18148
Michael Herzog 5 lat temu
rodzic
commit
2b8654c4ee

+ 0 - 4
examples/js/postprocessing/SSAOPass.js

@@ -153,10 +153,6 @@ THREE.SSAOPass.prototype = Object.assign( Object.create( THREE.Pass.prototype ),
 		this.ssaoRenderTarget.dispose();
 		this.blurRenderTarget.dispose();
 
-		// dispose geometry
-
-		this.quad.geometry.dispose();
-
 		// dispose materials
 
 		this.normalMaterial.dispose();

+ 0 - 4
examples/jsm/postprocessing/SSAOPass.js

@@ -183,10 +183,6 @@ SSAOPass.prototype = Object.assign( Object.create( Pass.prototype ), {
 		this.ssaoRenderTarget.dispose();
 		this.blurRenderTarget.dispose();
 
-		// dispose geometry
-
-		this.quad.geometry.dispose();
-
 		// dispose materials
 
 		this.normalMaterial.dispose();