File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
examples/jsm/renderers/common Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ class RenderContexts {
99
1010 }
1111
12- get ( scene , camera , renderTarget = null ) {
12+ get ( scene , camera , renderTarget ) {
1313
1414 const chainKey = [ scene , camera ] ;
1515
@@ -51,7 +51,7 @@ class RenderContexts {
5151
5252 }
5353
54- if ( renderTarget !== null ) renderState . sampleCount = renderTarget . samples === 0 ? 1 : renderTarget . samples ;
54+ if ( ! renderTarget . isCanvasRenderTarget ) renderState . sampleCount = renderTarget . samples === 0 ? 1 : renderTarget . samples ;
5555
5656 return renderState ;
5757
Original file line number Diff line number Diff line change @@ -418,7 +418,6 @@ class Renderer {
418418 renderContext . height = renderTargetData . height ;
419419 renderContext . depth = renderTarget . depthBuffer ;
420420 renderContext . stencil = renderTarget . stencilBuffer ;
421- renderContext . sampleCount = renderTarget . samples === 0 ? 1 : renderTarget . samples ;
422421
423422 }
424423
You can’t perform that action at this time.
0 commit comments