Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed May 30, 2024
1 parent dded9a3 commit 20df00c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ class Renderer {

}

const renderTarget = this._renderTarget.isCanvasRenderTarget !== true ? this._renderTarget : this._getFrameBufferTarget();
const renderTarget = this._renderTarget.isCanvasRenderTarget === true ? this._getFrameBufferTarget() : this._renderTarget;

let renderTargetData = null;

Expand All @@ -901,7 +901,7 @@ class Renderer {

this.backend.clear( color, depth, stencil, renderTargetData, renderTarget );

if ( renderTarget !== null && this._renderTarget === null ) {
if ( renderTarget !== null && this._renderTarget.isCanvasRenderTarget === true ) {

// If a color space transform or tone mapping is required,
// the clear operation clears the intermediate renderTarget texture, but does not update the screen canvas.
Expand Down

0 comments on commit 20df00c

Please sign in to comment.