8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d3a5fe commit 680ccc5Copy full SHA for 680ccc5
src/renderers/WebGLRenderTarget.js
@@ -2,6 +2,7 @@ import { EventDispatcher } from '../core/EventDispatcher.js';
2
import { Texture } from '../textures/Texture.js';
3
import { LinearFilter } from '../constants.js';
4
import { Vector4 } from '../math/Vector4.js';
5
+import { Source } from '../textures/Source.js';
6
7
/*
8
In options, we can specify:
@@ -82,7 +83,8 @@ class WebGLRenderTarget extends EventDispatcher {
82
83
84
// ensure image object is not shared, see #20328
85
- this.texture.image = Object.assign( {}, source.texture.image );
86
+ const image = Object.assign( {}, source.texture.image );
87
+ this.texture.source = new Source( image );
88
89
this.depthBuffer = source.depthBuffer;
90
this.stencilBuffer = source.stencilBuffer;
0 commit comments