فهرست منبع

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 ) {