mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 15:32:57 +00:00
- Fully implemented CVAR_OVERRIDEGET for vid_renderer from the ZDoom code submission.
This commit is contained in:
parent
9b9ed64360
commit
813030efef
4 changed files with 3 additions and 6 deletions
|
@ -52,9 +52,6 @@
|
||||||
#include "v_video.h"
|
#include "v_video.h"
|
||||||
#include "colormatcher.h"
|
#include "colormatcher.h"
|
||||||
|
|
||||||
// [SP] This is a dummy CVAR that needs to be removed in child ports that implement the real version.
|
|
||||||
CVAR(Int, vid_renderer, 1, CVAR_GLOBALCONFIG | CVAR_OVERRIDEGET | CVAR_ARCHIVE)
|
|
||||||
|
|
||||||
// [SP] Lets the player (arbitrator) choose whether to override GetCVar checks.
|
// [SP] Lets the player (arbitrator) choose whether to override GetCVar checks.
|
||||||
// Danger of desync? Can we just make it a client var? This probably *fixes* desyncs, actually...
|
// Danger of desync? Can we just make it a client var? This probably *fixes* desyncs, actually...
|
||||||
CVAR(Bool, sv_overridegetcvar, true, CVAR_SERVERINFO | CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
|
CVAR(Bool, sv_overridegetcvar, true, CVAR_SERVERINFO | CVAR_GLOBALCONFIG | CVAR_ARCHIVE)
|
||||||
|
|
|
@ -123,7 +123,7 @@ CUSTOM_CVAR(Bool, vid_autoswitch, true, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_
|
||||||
|
|
||||||
static int s_currentRenderer;
|
static int s_currentRenderer;
|
||||||
|
|
||||||
CUSTOM_CVAR(Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
CUSTOM_CVAR(Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
|
||||||
{
|
{
|
||||||
// 0: Software renderer
|
// 0: Software renderer
|
||||||
// 1: OpenGL renderer
|
// 1: OpenGL renderer
|
||||||
|
|
|
@ -64,7 +64,7 @@ void I_RestartRenderer();
|
||||||
int currentrenderer;
|
int currentrenderer;
|
||||||
|
|
||||||
// [ZDoomGL]
|
// [ZDoomGL]
|
||||||
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
|
||||||
{
|
{
|
||||||
// 0: Software renderer
|
// 0: Software renderer
|
||||||
// 1: OpenGL renderer
|
// 1: OpenGL renderer
|
||||||
|
|
|
@ -71,7 +71,7 @@ int currentrenderer = -1;
|
||||||
bool changerenderer;
|
bool changerenderer;
|
||||||
|
|
||||||
// [ZDoomGL]
|
// [ZDoomGL]
|
||||||
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL)
|
CUSTOM_CVAR (Int, vid_renderer, 1, CVAR_ARCHIVE | CVAR_GLOBALCONFIG | CVAR_NOINITCALL | CVAR_OVERRIDEGET)
|
||||||
{
|
{
|
||||||
// 0: Software renderer
|
// 0: Software renderer
|
||||||
// 1: OpenGL renderer
|
// 1: OpenGL renderer
|
||||||
|
|
Loading…
Reference in a new issue