提交 6e55062d 编写于 作者: M Michael Herzog 提交者: Mr.doob

Texture: Set needsUpdate to true in copy(). (#23637)

* Texture: Set needsUpdate to true in copy().

* Fix WebGLMultipleRenderTargets.
上级 b57c6596
......@@ -13,6 +13,7 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
for ( let i = 0; i < count; i ++ ) {
this.texture[ i ] = texture.clone();
this.texture[ i ].isRenderTargetTexture = true;
}
......
......@@ -426,7 +426,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
if ( texture.isVideoTexture ) updateVideoTexture( texture );
if ( texture.version > 0 && textureProperties.__version !== texture.version ) {
if ( texture.isRenderTargetTexture === false && texture.version > 0 && textureProperties.__version !== texture.version ) {
const image = texture.image;
......
......@@ -136,6 +136,8 @@ class Texture extends EventDispatcher {
this.userData = JSON.parse( JSON.stringify( source.userData ) );
this.needsUpdate = true;
return this;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册