GPU: Fix incorrect polyline terminator check

Fixes Gran Turismo 2, maybe others.
This commit is contained in:
Connor McLaughlin 2020-03-30 00:31:39 +10:00
parent a9109c7552
commit f13cfce34d

View file

@ -257,7 +257,7 @@ bool GPU::HandleRenderCommand(const u32*& command_ptr, u32 command_size)
bool found_terminator = false; bool found_terminator = false;
for (u32 pos = 2; pos < command_size; pos += words_per_vertex) for (u32 pos = 2; pos < command_size; pos += words_per_vertex)
{ {
if (command_ptr[pos] == 0x55555555) if ((command_ptr[pos] & UINT32_C(0xF000F000)) == UINT32_C(0x50005000))
{ {
found_terminator = true; found_terminator = true;
break; break;