Skip to content

Commit

Permalink
WebGLTextures: Fix depth textures with multisampling. (mrdoob#23611)
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 authored and qiweicao committed Apr 9, 2024
1 parent a7e3a6b commit 26264b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderers/webgl/WebGLTextures.js
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ function WebGLTextures( _gl, extensions, state, properties, capabilities, utils,
}

const renderTargetProperties = properties.get( renderTarget );
const ignoreDepthValues = ( renderTargetProperties.__ignoreDepthValues !== undefined ) ? renderTargetProperties.__ignoreDepthValues : true;
const ignoreDepthValues = ( renderTargetProperties.__ignoreDepthValues !== undefined ) ? renderTargetProperties.__ignoreDepthValues : false;

if ( ignoreDepthValues === false ) {

Expand Down

0 comments on commit 26264b6

Please sign in to comment.