From 3619b46b45274cad5e817b7fda46a604cd6bb642 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 5 Nov 2019 00:26:35 +1000 Subject: [PATCH] GPU: Fix parsing of polylines.. again --- src/core/gpu_commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/gpu_commands.cpp b/src/core/gpu_commands.cpp index 53d70cc03..982614986 100644 --- a/src/core/gpu_commands.cpp +++ b/src/core/gpu_commands.cpp @@ -190,9 +190,9 @@ bool GPU::HandleRenderCommand(const u32*& command_ptr, u32 command_size) if (rc.polyline) { // polyline goes until we hit the termination code - num_vertices = 0; + num_vertices = 1; bool found_terminator = false; - for (u32 pos = 1 + BoolToUInt32(rc.shading_enable); pos < command_size; pos += words_per_vertex) + for (u32 pos = 2; pos < command_size; pos += words_per_vertex) { if (command_ptr[pos] == 0x55555555) {