浏览代码

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

David Peicho 4 年之前
父节点
当前提交
1e4c637c7e
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 ++;