Ge: Apply slight adjustment to cull range, see issue #17061

This commit is contained in:
Henrik Rydgård committed 2025-02-13 14:57:42 -06:00
1 parent 0b5bcef6e2
commit 630824a7a3
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}