From 54e87c915f6f96385396a56b5562edc04ca1232b Mon Sep 17 00:00:00 2001 From: Jakly <102590697+Jaklyy@users.noreply.github.com> Date: Thu, 1 Aug 2024 16:55:00 -0400 Subject: [PATCH] fix a couple polygons (#1920) hw prioritizes the earlier vertex instead of leftmost --- src/GPU3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GPU3D.cpp b/src/GPU3D.cpp index 436f563c..865b00a1 100644 --- a/src/GPU3D.cpp +++ b/src/GPU3D.cpp @@ -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];