Skip to content

Commit

Permalink
fix a couple polygons (#1920)
Browse files Browse the repository at this point in the history
hw prioritizes the earlier vertex instead of leftmost
  • Loading branch information
Jaklyy authored Aug 1, 2024
1 parent 12be06b commit 54e87c9
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 @@ -1279,7 +1279,7 @@ void GPU3D::SubmitPolygon() noexcept
{
Vertex* vtx = poly->Vertices[i];

if (vtx->FinalPosition[1] < ytop || (vtx->FinalPosition[1] == ytop && vtx->FinalPosition[0] < xtop))
if (vtx->FinalPosition[1] < ytop)
{
xtop = vtx->FinalPosition[0];
ytop = vtx->FinalPosition[1];
Expand Down

0 comments on commit 54e87c9

Please sign in to comment.