- lock cvar shader uniforms behind a command line parameter for now

This commit is contained in:
Rachael Alexanderson 2022-04-16 12:12:43 -04:00
parent a071479339
commit 761502d0b8

View file

@ -49,6 +49,7 @@
#include "hw_material.h"
#include "texturemanager.h"
#include "gameconfigfile.h"
#include "m_argv.h"
#if 0
void AddLightDefaults(FLightDefaults *defaults, double attnFactor);
@ -1567,6 +1568,13 @@ class GLDefsParser
val.Float = oldval.Float = sc.Float;
if (!Args->CheckParm ("-shaderuniformtest"))
{
// these aren't really release-ready, so lock them behind a command-line argument for now.
sc.ScriptMessage("Warning - Use -shaderuniformtest to enable shader uniforms!");
}
else
{
if (!cvar)
{
cvar = C_CreateCVar(cvarname, cvartype, cvarflags);
@ -1609,6 +1617,7 @@ class GLDefsParser
cvar->SetExtraDataPointer(extra);
}
}
}
else if (sc.Compare("texture"))
{
sc.MustGetString();