fix for gl_overbright init order bug, maybe Despair can come up with a better way

This commit is contained in:
Chris Ison 2004-03-08 18:42:42 +00:00
parent b7df0b5278
commit 68a1a50f1f

View file

@ -537,8 +537,6 @@ gl_overbright_f (cvar_t *var)
if (!var)
return;
if (!R_BuildLightMap)
return;
if (var->int_val) {
if (!gl_combine_capable && gl_mtex_capable) {
@ -578,6 +576,9 @@ gl_overbright_f (cvar_t *var)
if (gl_multitexture)
gl_multitexture_f (gl_multitexture);
if (!R_BuildLightMap)
return;
for (i = 0; i < r_numvisedicts; i++) {
m = r_visedicts[i]->model;