2
0
Эх сурвалжийг харах

WebGLRenderTarget: clone texture image data when cloning render target (#21719)

* clone rendertarget.texture image data

* rework comment
Garrett Johnson 4 жил өмнө
parent
commit
3060ed33ab

+ 1 - 0
src/renderers/WebGLRenderTarget.js

@@ -89,6 +89,7 @@ class WebGLRenderTarget extends EventDispatcher {
 		this.viewport.copy( source.viewport );
 
 		this.texture = source.texture.clone();
+		this.texture.image = { ...this.texture.image }; // See #20328.
 
 		this.depthBuffer = source.depthBuffer;
 		this.stencilBuffer = source.stencilBuffer;