From dec468966c70c7e9575cabea8ed1d4610a1d4f2a Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 25 Nov 2024 15:39:30 +1000 Subject: [PATCH] GPU/HW: Fix sprite mode triggering on screen-aligned UVs Some polygons just end up being perfect. For example, Croc 2 minecart level. --- src/core/gpu_hw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_hw.cpp b/src/core/gpu_hw.cpp index b481929fe..3d32b949c 100644 --- a/src/core/gpu_hw.cpp +++ b/src/core/gpu_hw.cpp @@ -2551,7 +2551,7 @@ void GPU_HW::LoadVertices() if (m_resolution_scale > 1 && !is_3d && rc.quad_polygon) HandleFlippedQuadTextureCoordinates(vertices.data()); else if (m_allow_sprite_mode) - SetBatchSpriteMode((pgxp && !is_3d) || IsPossibleSpritePolygon(vertices.data())); + SetBatchSpriteMode(pgxp ? !is_3d : IsPossibleSpritePolygon(vertices.data())); if (m_sw_renderer) {