From 177652d724fb271087a5dac4637baf3319d2e384 Mon Sep 17 00:00:00 2001 From: Forest Hale Date: Thu, 29 Jun 2000 23:06:08 +0000 Subject: [PATCH] Fix for white particles bug. (cleanup after Endy) --- source/gl_part.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/gl_part.c b/source/gl_part.c index 1d3d69f..f08fcc1 100644 --- a/source/gl_part.c +++ b/source/gl_part.c @@ -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);