Skip to content

Commit 27de13e

Browse files
authored
[WebGLMultipleRenderTargets.prototype.copy] Fix misprint: copy viewport/scissor from source (#25803)
1 parent b844ad9 commit 27de13e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/renderers/WebGLMultipleRenderTargets.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
5656
this.height = source.height;
5757
this.depth = source.depth;
5858

59-
this.viewport.set( 0, 0, this.width, this.height );
60-
this.scissor.set( 0, 0, this.width, this.height );
59+
this.viewport.copy( source.viewport );
60+
this.scissor.copy( source.scissor );
6161

6262
this.depthBuffer = source.depthBuffer;
6363
this.stencilBuffer = source.stencilBuffer;

0 commit comments

Comments
 (0)