소스 검색

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 ++;