Explorar o código

WebGLTextures.js: fix render texture re-uploaded on first use (#21455)

David Peicho %!s(int64=4) %!d(string=hai) anos
pai
achega
1e4c637c7e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/renderers/webgl/WebGLTextures.js

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

@@ -1036,6 +1036,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
 		renderTarget.addEventListener( 'dispose', onRenderTargetDispose );
 
 		textureProperties.__webglTexture = _gl.createTexture();
+		textureProperties.__version = texture.version;
 
 		info.memory.textures ++;