Skip to content

Commit

Permalink
WebGLRenderer: Clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jun 5, 2021
1 parent ce47a89 commit 65e6b48
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/renderers/WebGLRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -1268,7 +1268,9 @@ function WebGLRenderer( parameters ) {

if ( _transmissionRenderTarget === null ) {

const renderTargetType = _antialias && capabilities.isWebGL2 && false ? WebGLMultisampleRenderTarget : WebGLRenderTarget;
const needsAntialias = _antialias === true && capabilities.isWebGL2 === true;
const renderTargetType = needsAntialias ? WebGLMultisampleRenderTarget : WebGLRenderTarget;

_transmissionRenderTarget = new renderTargetType( 1024, 1024, {
generateMipmaps: true,
minFilter: LinearMipmapLinearFilter,
Expand Down

0 comments on commit 65e6b48

Please sign in to comment.