mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
Lighting init fixes.
This commit is contained in:
parent
beb22957db
commit
58d67f9a75
2 changed files with 5 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue