mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-02-02 04:32:24 +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,8 +518,11 @@ 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)
|
||||||
glDisable(GL_ALPHA_TEST);
|
glDisable(GL_ALPHA_TEST);
|
||||||
glBegin (GL_TRIANGLES);
|
glBegin (GL_TRIANGLES);
|
||||||
|
|
Loading…
Reference in a new issue