From f13cfce34d240d6809aaf843decd3e0c1528392d Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Mon, 30 Mar 2020 00:31:39 +1000 Subject: [PATCH] GPU: Fix incorrect polyline terminator check Fixes Gran Turismo 2, maybe others. --- src/core/gpu_commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_commands.cpp b/src/core/gpu_commands.cpp index 8006f9c39..ec634e439 100644 --- a/src/core/gpu_commands.cpp +++ b/src/core/gpu_commands.cpp @@ -257,7 +257,7 @@ bool GPU::HandleRenderCommand(const u32*& command_ptr, u32 command_size) bool found_terminator = false; 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; break;