- fixed: Raze did not have gl_lights yet, but recent additions need this CVAR.

Put it in v_video.cpp so that it is in a common backend file.
This commit is contained in:
Christoph Oelckers 2021-08-11 12:02:56 +02:00
parent 8106d788f6
commit b2f7eb5b4f
3 changed files with 2 additions and 1 deletions

View file

@ -25,7 +25,6 @@
#include "hw_dynlightdata.h" #include "hw_dynlightdata.h"
#include "buffers.h" #include "buffers.h"
#include "shaderuniforms.h" #include "shaderuniforms.h"
#include "g_cvars.h"
#include "hwrenderer/postprocessing/hw_postprocess.h" #include "hwrenderer/postprocessing/hw_postprocess.h"
/* /*

View file

@ -154,6 +154,7 @@ int DisplayWidth, DisplayHeight;
// There's also only one, not four. // There's also only one, not four.
DFrameBuffer *screen; DFrameBuffer *screen;
CVAR(Bool, gl_lights, true, CVAR_ARCHIVE)
CVAR (Int, vid_defwidth, 640, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CVAR (Int, vid_defwidth, 640, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR (Int, vid_defheight, 480, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CVAR (Int, vid_defheight, 480, CVAR_ARCHIVE|CVAR_GLOBALCONFIG)
CVAR (Bool, ticker, false, 0) CVAR (Bool, ticker, false, 0)

View file

@ -279,6 +279,7 @@ extern DFrameBuffer *screen;
#define SCREENPITCH (screen->GetPitch ()) #define SCREENPITCH (screen->GetPitch ())
EXTERN_CVAR (Float, vid_gamma) EXTERN_CVAR (Float, vid_gamma)
EXTERN_CVAR(Bool, gl_lights)
// Allocates buffer screens, call before R_Init. // Allocates buffer screens, call before R_Init.