From 6d39f3dc9e28031d5128adc1ca9a0d147228bdcc Mon Sep 17 00:00:00 2001 From: Colin James Wood Date: Wed, 6 May 2026 19:47:28 +0100 Subject: [PATCH] comment out x coordinates that aren't used in SW_RASTER_TRIANGLE --- src/external/rlsw.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/external/rlsw.h b/src/external/rlsw.h index 355c24524..a1835d5f8 100644 --- a/src/external/rlsw.h +++ b/src/external/rlsw.h @@ -5564,9 +5564,13 @@ static void SW_RASTER_TRIANGLE(const sw_vertex_t *v0, const sw_vertex_t *v1, con if (v0->position[1] > v1->position[1]) { const sw_vertex_t *tmp = v0; v0 = v1; v1 = tmp; } // Extracting coordinates from the sorted vertices - float x0 = v0->position[0], y0 = v0->position[1]; - float x1 = v1->position[0], y1 = v1->position[1]; - float x2 = v2->position[0], y2 = v2->position[1]; + // Put x away for safe keeping. Only y is used right now. Silences warnings. + //float x0 = v0->position[0]; + float y0 = v0->position[1]; + //float x1 = v1->position[0]; + float y1 = v1->position[1]; + //float x2 = v2->position[0]; + float y2 = v2->position[1]; // Compute height differences float h02 = y2 - y0;