Skip to content

Commit

Permalink
GPU/HW: Fix sprite mode triggering on screen-aligned UVs
Browse files Browse the repository at this point in the history
Some polygons just end up being perfect. For example, Croc 2
minecart level.
  • Loading branch information
stenzek committed Nov 25, 2024
1 parent a804801 commit dec4689
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/gpu_hw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit dec4689

Please sign in to comment.