Fix for white particles bug. (cleanup after Endy)

This commit is contained in:
Forest Hale 2000-06-29 23:06:08 +00:00
parent 244ea57e1a
commit 177652d724
1 changed files with 4 additions and 1 deletions

View File

@ -518,8 +518,11 @@ void R_DrawParticles (void)
qboolean alphaTestEnabled;
glBindTexture (GL_TEXTURE_2D, particletexture);
// LordHavoc: reset to single texture and modulate mode before drawing particles
GL_DisableMultitexture();
glTexEnvf(GL_TEXTURE_ENV, GL_TEXTURE_ENV_MODE, GL_MODULATE);
alphaTestEnabled = glIsEnabled(GL_ALPHA_TEST);
if (alphaTestEnabled)
glDisable(GL_ALPHA_TEST);
glBegin (GL_TRIANGLES);