浏览代码

Update WebGLTextures.js

Michael Herzog 3 年之前
父节点
当前提交
3c2e417f70
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/renderers/webgl/WebGLTextures.js

+ 1 - 1
src/renderers/webgl/WebGLTextures.js

@@ -706,7 +706,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 
 			const levels = getMipLevels( texture, image, supportsMips );
 			const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
-			const allocateMemory = ( texture.version === 1 );
+			const allocateMemory = ( textureProperties.__version === undefined );
 
 			if ( mipmaps.length > 0 && supportsMips ) {