mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +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;
|
||||
|
||||
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);
|
||||
|
|
Loading…
Reference in a new issue