From 4adc3994f763d9569440ac9fea13d6b6ee0b63e3 Mon Sep 17 00:00:00 2001 From: Michael Herzog Date: Mon, 21 Oct 2024 18:03:12 +0200 Subject: [PATCH] Update WebGLCapabilities.js --- src/renderers/webgl/WebGLCapabilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/webgl/WebGLCapabilities.js b/src/renderers/webgl/WebGLCapabilities.js index 9fea7a1cb93c9d..4f04c836c31d9a 100644 --- a/src/renderers/webgl/WebGLCapabilities.js +++ b/src/renderers/webgl/WebGLCapabilities.js @@ -92,7 +92,7 @@ function WebGLCapabilities( gl, extensions, parameters, utils ) { } const logarithmicDepthBuffer = parameters.logarithmicDepthBuffer === true; - const reverseDepthBuffer = extensions.has( 'EXT_clip_control' ); + const reverseDepthBuffer = parameters.reverseDepthBuffer === true && extensions.has( 'EXT_clip_control' ); const maxTextures = gl.getParameter( gl.MAX_TEXTURE_IMAGE_UNITS ); const maxVertexTextures = gl.getParameter( gl.MAX_VERTEX_TEXTURE_IMAGE_UNITS );