aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaklyy <102590697+Jaklyy@users.noreply.github.com>2023-11-07 15:22:25 -0500
committerGitHub <noreply@github.com>2023-11-07 21:22:25 +0100
commitb4ff911fa357dd4a3572ff55373f8ddcd3f6f5ad (patch)
treea6ce3b08f1880cb9605286a9ebf773e75e8ede42
parent24a33e505e2b4757dd6bbdd3afc10fba67b304f4 (diff)
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.
-rw-r--r--src/GPU3D.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp
index 718c641..55d6de7 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)))
{