mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 14:52:01 +00:00
- 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:
parent
8106d788f6
commit
b2f7eb5b4f
3 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue