Skip to content

Commit

Permalink
Fix regression caused by change to front face polygon culling (melonD…
Browse files Browse the repository at this point in the history
…S-emu#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.
  • Loading branch information
Jaklyy authored Nov 7, 2023
1 parent 24a33e5 commit b4ff911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GPU3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1070,7 +1070,7 @@ void SubmitPolygon()

bool facingview = (dot <= 0);

if (facingview)
if (dot < 0)
{
if (!(CurPolygonAttr & (1<<7)))
{
Expand Down

0 comments on commit b4ff911

Please sign in to comment.