فهرست منبع

Merge pull request #18149 from drcmda/ssaop

remove SSAOPass.quad.dispose, fixes #18148
Michael Herzog 5 سال پیش
والد
کامیت
2b8654c4ee
2فایلهای تغییر یافته به همراه0 افزوده شده و 8 حذف شده
  1. 0 4
      examples/js/postprocessing/SSAOPass.js
  2. 0 4
      examples/jsm/postprocessing/SSAOPass.js

+ 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();