mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 14:52:08 +00:00
Fix for white particles bug. (cleanup after Endy)
This commit is contained in:
parent
244ea57e1a
commit
177652d724
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue