mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-31 09:11:06 +00:00
State change cleanup, but saner code!
This commit is contained in:
parent
86f87122c0
commit
f6bfcfc82d
9 changed files with 46 additions and 133 deletions
|
@ -650,6 +650,7 @@ void R_DrawParticles (void)
|
|||
}
|
||||
|
||||
glEnd ();
|
||||
glColor3ubv(lighthalf_v);
|
||||
if (alphaTestEnabled)
|
||||
glEnable(GL_ALPHA_TEST);
|
||||
glDepthMask(1);
|
||||
|
@ -793,6 +794,7 @@ R_DrawFire (fire_t *f)
|
|||
b_cos+=2;
|
||||
}
|
||||
glEnd ();
|
||||
glColor3ubv(lighthalf_v);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -823,7 +825,6 @@ R_UpdateFires (void)
|
|||
R_DrawFire (f);
|
||||
}
|
||||
|
||||
glColor3f (1.0, 1.0, 1.0);
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
glDepthMask (1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue