comment out x coordinates that aren't used in SW_RASTER_TRIANGLE
This commit is contained in:
parent
50146f5911
commit
6d39f3dc9e
10
src/external/rlsw.h
vendored
10
src/external/rlsw.h
vendored
|
|
@ -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; }
|
if (v0->position[1] > v1->position[1]) { const sw_vertex_t *tmp = v0; v0 = v1; v1 = tmp; }
|
||||||
|
|
||||||
// Extracting coordinates from the sorted vertices
|
// Extracting coordinates from the sorted vertices
|
||||||
float x0 = v0->position[0], y0 = v0->position[1];
|
// Put x away for safe keeping. Only y is used right now. Silences warnings.
|
||||||
float x1 = v1->position[0], y1 = v1->position[1];
|
//float x0 = v0->position[0];
|
||||||
float x2 = v2->position[0], y2 = v2->position[1];
|
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
|
// Compute height differences
|
||||||
float h02 = y2 - y0;
|
float h02 = y2 - y0;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user