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

View file

@ -518,6 +518,9 @@ void R_DrawParticles (void)
qboolean alphaTestEnabled; qboolean alphaTestEnabled;
glBindTexture (GL_TEXTURE_2D, particletexture); 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); alphaTestEnabled = glIsEnabled(GL_ALPHA_TEST);
if (alphaTestEnabled) if (alphaTestEnabled)