Procházet zdrojové kódy

WebGLTextures: Ensure depth texture properties are deleted. (#29697)

Michael Herzog před 1 rokem
rodič
revize
0ba707350b
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      src/renderers/webgl/WebGLTextures.js

+ 2 - 0
src/renderers/webgl/WebGLTextures.js

@@ -385,6 +385,8 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 			renderTarget.depthTexture.dispose();
 
+			properties.remove( renderTarget.depthTexture );
+
 		}
 
 		if ( renderTarget.isWebGLCubeRenderTarget ) {

粤ICP备19079148号