Lighting init fixes.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2004-02-29 04:50:01 +00:00
parent beb22957db
commit 58d67f9a75
2 changed files with 5 additions and 2 deletions

View file

@ -75,7 +75,7 @@ qboolean lightmap_modified[MAX_GLTEXTURES];
glpoly_t *lightmap_polys[MAX_LIGHTMAPS];
glRect_t lightmap_rectchange[MAX_LIGHTMAPS];
static int lshift, lshift2;
static int lshift = 8, lshift2 = 9;
void (*R_BuildLightMap) (msurface_t *surf);
@ -555,7 +555,7 @@ gl_overbright_f (cvar_t *var)
if (!var)
return;
if (R_BuildLightMap == 0)
if (!R_BuildLightMap)
return;
switch (var->int_val) {

View file

@ -47,6 +47,7 @@ static __attribute__ ((unused)) const char rcsid[] =
#include "QF/input.h"
#include "QF/qargs.h"
#include "QF/quakefs.h"
#include "r_cvar.h" // FIXME: for gl_overbright_f
#include "QF/sys.h"
#include "QF/va.h"
#include "QF/vid.h"
@ -157,6 +158,8 @@ gl_doublebright_f (cvar_t *var)
lm_src_blend = GL_ZERO;
lm_dest_blend = GL_SRC_COLOR;
}
if (gl_overbright)
gl_overbright_f (gl_overbright);
}
static void