Skip to content

Commit

Permalink
[WebGLMultipleRenderTargets.prototype.copy] Fix misprint: copy viewpo…
Browse files Browse the repository at this point in the history
…rt/scissor from source (#25803)
  • Loading branch information
querielo authored Apr 10, 2023
1 parent b844ad9 commit 27de13e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/renderers/WebGLMultipleRenderTargets.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ class WebGLMultipleRenderTargets extends WebGLRenderTarget {
this.height = source.height;
this.depth = source.depth;

this.viewport.set( 0, 0, this.width, this.height );
this.scissor.set( 0, 0, this.width, this.height );
this.viewport.copy( source.viewport );
this.scissor.copy( source.scissor );

this.depthBuffer = source.depthBuffer;
this.stencilBuffer = source.stencilBuffer;
Expand Down

0 comments on commit 27de13e

Please sign in to comment.