Fix erroneous compilation macro.

This commit is contained in:
Dario 2021-04-09 15:40:31 -03:00
parent a356a8d59c
commit 2d8624ef14
1 changed files with 2 additions and 1 deletions

View File

@ -1067,7 +1067,7 @@ static void gfx_sp_tri1(uint8_t vtx1_idx, uint8_t vtx2_idx, uint8_t vtx3_idx) {
// The whole triangle lies outside the visible area
return;
}
#endif
if ((rsp.geometry_mode & G_CULL_BOTH) != 0) {
float dx1 = v1->x / (v1->w) - v2->x / (v2->w);
float dy1 = v1->y / (v1->w) - v2->y / (v2->w);
@ -1093,6 +1093,7 @@ static void gfx_sp_tri1(uint8_t vtx1_idx, uint8_t vtx2_idx, uint8_t vtx3_idx) {
return;
}
}
#endif
bool depth_test = (rsp.geometry_mode & G_ZBUFFER) == G_ZBUFFER;
if (depth_test != rendering_state.depth_test) {