|
@@ -2674,7 +2674,8 @@ class WebGLRenderTarget extends EventDispatcher {
|
|
|
this.texture = source.texture.clone();
|
|
|
this.texture.isRenderTargetTexture = true; // ensure image object is not shared, see #20328
|
|
|
|
|
|
- this.texture.image = Object.assign({}, source.texture.image);
|
|
|
+ const image = Object.assign({}, source.texture.image);
|
|
|
+ this.texture.source = new Source(image);
|
|
|
this.depthBuffer = source.depthBuffer;
|
|
|
this.stencilBuffer = source.stencilBuffer;
|
|
|
if (source.depthTexture !== null) this.depthTexture = source.depthTexture.clone();
|