Skip to content

Commit 3c2e417

Browse files
authored
Update WebGLTextures.js
1 parent 64b25a1 commit 3c2e417

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/renderers/webgl/WebGLTextures.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
706706

707707
const levels = getMipLevels( texture, image, supportsMips );
708708
const useTexStorage = ( isWebGL2 && texture.isVideoTexture !== true );
709-
const allocateMemory = ( texture.version === 1 );
709+
const allocateMemory = ( textureProperties.__version === undefined );
710710

711711
if ( mipmaps.length > 0 && supportsMips ) {
712712

0 commit comments

Comments
 (0)