State change cleanup, but saner code!

This commit is contained in:
Zephaniah E. Hull 2000-09-28 00:22:24 +00:00
parent 86f87122c0
commit f6bfcfc82d
9 changed files with 46 additions and 133 deletions

View file

@ -650,6 +650,7 @@ void R_DrawParticles (void)
}
glEnd ();
glColor3ubv(lighthalf_v);
if (alphaTestEnabled)
glEnable(GL_ALPHA_TEST);
glDepthMask(1);
@ -793,6 +794,7 @@ R_DrawFire (fire_t *f)
b_cos+=2;
}
glEnd ();
glColor3ubv(lighthalf_v);
}
/*
@ -823,7 +825,6 @@ R_UpdateFires (void)
R_DrawFire (f);
}
glColor3f (1.0, 1.0, 1.0);
glEnable (GL_TEXTURE_2D);
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
glDepthMask (1);