GPU/SW: Fix double draws of polyline vertices

This commit is contained in:
Stenzek 2024-12-19 22:42:02 +10:00
parent 10e2079ee4
commit 6993e6c31f
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ void GPU_SW_Backend::DrawLine(const GPUBackendDrawLineCommand* cmd)
const GPU_SW_Rasterizer::DrawLineFunction DrawFunction = const GPU_SW_Rasterizer::DrawLineFunction DrawFunction =
GPU_SW_Rasterizer::GetDrawLineFunction(cmd->rc.shading_enable, cmd->rc.transparency_enable); 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]); DrawFunction(cmd, &cmd->vertices[i - 1], &cmd->vertices[i]);
} }