Skip to content

Commit

Permalink
remove accidentally duplicated code and fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aardgoose committed Jan 29, 2024
1 parent 58a3ec8 commit 95d576b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/jsm/renderers/common/RenderContexts.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RenderContexts {

}

get( scene, camera, renderTarget = null ) {
get( scene, camera, renderTarget ) {

const chainKey = [ scene, camera ];

Expand Down Expand Up @@ -51,7 +51,7 @@ class RenderContexts {

}

if ( renderTarget !== null ) renderState.sampleCount = renderTarget.samples === 0 ? 1 : renderTarget.samples;
if ( ! renderTarget.isCanvasRenderTarget ) renderState.sampleCount = renderTarget.samples === 0 ? 1 : renderTarget.samples;

return renderState;

Expand Down
1 change: 0 additions & 1 deletion examples/jsm/renderers/common/Renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,6 @@ class Renderer {
renderContext.height = renderTargetData.height;
renderContext.depth = renderTarget.depthBuffer;
renderContext.stencil = renderTarget.stencilBuffer;
renderContext.sampleCount = renderTarget.samples === 0 ? 1 : renderTarget.samples;

}

Expand Down

0 comments on commit 95d576b

Please sign in to comment.