mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- lock cvar shader uniforms behind a command line parameter for now
This commit is contained in:
parent
1ba4dfbfa8
commit
43a419b318
1 changed files with 40 additions and 31 deletions
|
@ -49,6 +49,7 @@
|
|||
#include "hw_material.h"
|
||||
#include "texturemanager.h"
|
||||
#include "gameconfigfile.h"
|
||||
#include "m_argv.h"
|
||||
|
||||
void AddLightDefaults(FLightDefaults *defaults, double attnFactor);
|
||||
void AddLightAssociation(const char *actor, const char *frame, const char *light);
|
||||
|
@ -1562,6 +1563,13 @@ class GLDefsParser
|
|||
|
||||
val.Float = oldval.Float = (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);
|
||||
|
@ -1604,6 +1612,7 @@ class GLDefsParser
|
|||
cvar->SetExtraDataPointer(extra);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (sc.Compare("texture"))
|
||||
{
|
||||
sc.MustGetString();
|
||||
|
|
Loading…
Reference in a new issue