From 630824a7a3fd8bf89ad5e48eafae7eff435219c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Thu, 13 Feb 2025 14:57:42 -0600 Subject: [PATCH] Ge: Apply slight adjustment to cull range, see issue #17061 --- GPU/Common/ShaderUniforms.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPU/Common/ShaderUniforms.cpp b/GPU/Common/ShaderUniforms.cpp index 7e5a949a3d..3d06ce4374 100644 --- a/GPU/Common/ShaderUniforms.cpp +++ b/GPU/Common/ShaderUniforms.cpp @@ -68,7 +68,7 @@ void CalcCullRange(float minValues[4], float maxValues[4], bool flipViewport, bo minValues[3] = clampEnable; maxValues[0] = x.second; maxValues[1] = y.second; - maxValues[2] = z.second; + maxValues[2] = z.second + 1.0f / 65536.0f; // Adjustment needed due to some kind of rounding. See #17061 maxValues[3] = NAN; }