From b4ff911fa357dd4a3572ff55373f8ddcd3f6f5ad Mon Sep 17 00:00:00 2001 From: Jaklyy <102590697+Jaklyy@users.noreply.github.com> Date: Tue, 7 Nov 2023 15:22:25 -0500 Subject: [PATCH] Fix regression caused by change to front face polygon culling (#1820) * fix regression with facing view Only the check for a polygon being counter-clockwise is supposed to be <= * only use dot < 0 for 'cull front face' polygons this is the fix. --- src/GPU3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 718c6418..55d6de73 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -1070,7 +1070,7 @@ void SubmitPolygon() bool facingview = (dot <= 0); - if (facingview) + if (dot < 0) { if (!(CurPolygonAttr & (1<<7))) {