Assorted Voodoo and warning fixes.

This commit is contained in:
OBattler
2024-02-29 06:48:16 +01:00
parent 268754faa9
commit 5af0ccd145
4 changed files with 56 additions and 2 deletions

View File

@@ -1394,7 +1394,7 @@ next_line:
void
voodoo_triangle(voodoo_t *voodoo, voodoo_params_t *params, int odd_even)
{
voodoo_state_t state;
voodoo_state_t state = { 0 };
int vertexAy_adjusted;
int vertexCy_adjusted;
int dx;
@@ -1406,6 +1406,8 @@ voodoo_triangle(voodoo_t *voodoo, voodoo_params_t *params, int odd_even)
int LOD;
int lodbias;
state.dx1 = state.dx2 = 0;
voodoo->tri_count++;
dx = 8 - (params->vertexAx & 0xf);