From 6993e6c31fb854975130da138628e28024a10685 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Thu, 19 Dec 2024 22:42:02 +1000 Subject: [PATCH] GPU/SW: Fix double draws of polyline vertices --- src/core/gpu_sw_backend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/gpu_sw_backend.cpp b/src/core/gpu_sw_backend.cpp index 0ab2e68e8..925e20bd5 100644 --- a/src/core/gpu_sw_backend.cpp +++ b/src/core/gpu_sw_backend.cpp @@ -51,7 +51,7 @@ void GPU_SW_Backend::DrawLine(const GPUBackendDrawLineCommand* cmd) const GPU_SW_Rasterizer::DrawLineFunction DrawFunction = GPU_SW_Rasterizer::GetDrawLineFunction(cmd->rc.shading_enable, cmd->rc.transparency_enable); - for (u16 i = 1; i < cmd->num_vertices; i++) + for (u16 i = 1; i < cmd->num_vertices; i += 2) DrawFunction(cmd, &cmd->vertices[i - 1], &cmd->vertices[i]); }