mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 00:30:38 +00:00
More audit cleanups, glShadeModel this time, and gl_affinemodels does
what it says now, instead of the reverse of what it says.
This commit is contained in:
parent
d92270d20c
commit
383075bb39
6 changed files with 16 additions and 21 deletions
|
@ -186,8 +186,9 @@ void R_RenderDlights (void)
|
|||
// advanced yet for this frame
|
||||
glDepthMask(GL_FALSE);
|
||||
glDisable (GL_TEXTURE_2D);
|
||||
glShadeModel (GL_SMOOTH);
|
||||
glBlendFunc (GL_ONE, GL_ONE);
|
||||
if (gl_smoothdlights->value)
|
||||
glShadeModel (GL_SMOOTH);
|
||||
|
||||
l = cl_dlights;
|
||||
for (i=0 ; i<MAX_DLIGHTS ; i++, l++)
|
||||
|
@ -197,6 +198,8 @@ void R_RenderDlights (void)
|
|||
R_RenderDlight (l);
|
||||
}
|
||||
|
||||
if (!gl_smooth->value)
|
||||
glShadeModel (GL_FLAT);
|
||||
glColor3ubv(lighthalf_v);
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
glBlendFunc (GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue