diff --git a/source/common/rendering/hwrenderer/data/hw_shadowmap.cpp b/source/common/rendering/hwrenderer/data/hw_shadowmap.cpp index bca545b3b..9b0de864f 100644 --- a/source/common/rendering/hwrenderer/data/hw_shadowmap.cpp +++ b/source/common/rendering/hwrenderer/data/hw_shadowmap.cpp @@ -25,7 +25,6 @@ #include "hw_dynlightdata.h" #include "buffers.h" #include "shaderuniforms.h" -#include "g_cvars.h" #include "hwrenderer/postprocessing/hw_postprocess.h" /* diff --git a/source/common/rendering/v_video.cpp b/source/common/rendering/v_video.cpp index 815b73a6b..d0f136668 100644 --- a/source/common/rendering/v_video.cpp +++ b/source/common/rendering/v_video.cpp @@ -154,6 +154,7 @@ int DisplayWidth, DisplayHeight; // There's also only one, not four. DFrameBuffer *screen; +CVAR(Bool, gl_lights, true, CVAR_ARCHIVE) CVAR (Int, vid_defwidth, 640, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CVAR (Int, vid_defheight, 480, CVAR_ARCHIVE|CVAR_GLOBALCONFIG) CVAR (Bool, ticker, false, 0) diff --git a/source/common/rendering/v_video.h b/source/common/rendering/v_video.h index c9124e05f..255cfa70c 100644 --- a/source/common/rendering/v_video.h +++ b/source/common/rendering/v_video.h @@ -279,6 +279,7 @@ extern DFrameBuffer *screen; #define SCREENPITCH (screen->GetPitch ()) EXTERN_CVAR (Float, vid_gamma) +EXTERN_CVAR(Bool, gl_lights) // Allocates buffer screens, call before R_Init.