GPU: Correct starting position for polyline terminator search

Fixes broken visuals in Wild Arms, probably others.
This commit is contained in:
Connor McLaughlin 2020-04-01 20:24:24 +10:00
parent 0eb740a0aa
commit 31581763a3
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ bool GPU::HandleRenderCommand(const u32*& command_ptr, u32 command_size)
// is on the first word for the vertex
num_vertices = 2;
bool found_terminator = false;
for (u32 pos = words_per_vertex * 2; pos < command_size; pos += words_per_vertex)
for (u32 pos = rc.shading_enable ? 4 : 3; pos < command_size; pos += words_per_vertex)
{
if ((command_ptr[pos] & UINT32_C(0xF000F000)) == UINT32_C(0x50005000))
{