Mr.doob hace 6 meses
padre
commit
c60282463d
Se han modificado 1 ficheros con 4 adiciones y 7 borrados
  1. 4 7
      src/renderers/webgl/WebGLTextures.js

+ 4 - 7
src/renderers/webgl/WebGLTextures.js

@@ -672,9 +672,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 		let forceUpload = false;
 
-		if ( textureProperties.__init === undefined ) {
+		if ( textureProperties.__webglInit === undefined ) {
 
-			textureProperties.__init = true;
+			textureProperties.__webglInit = true;
 
 			texture.addEventListener( 'dispose', onTextureDispose );
 
@@ -1671,9 +1671,9 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		if ( isCube ) {
 
 			// For cube depth textures, initialize and bind without uploading image data
-			if ( textureProperties.__init === undefined ) {
+			if ( textureProperties.__webglInit === undefined ) {
 
-				textureProperties.__init = true;
+				textureProperties.__webglInit = true;
 				renderTarget.depthTexture.addEventListener( 'dispose', onTextureDispose );
 
 			}
@@ -1907,9 +1907,6 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		const texture = renderTarget.texture;
 
 		const renderTargetProperties = properties.get( renderTarget );
-
-
-
 		const textureProperties = properties.get( texture );
 
 		renderTarget.addEventListener( 'dispose', onRenderTargetDispose );

粤ICP备19079148号