mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 00:41:55 +00:00
- lock cvar shader uniforms behind a command line parameter for now
This commit is contained in:
parent
a071479339
commit
761502d0b8
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"
|
||||
|
||||
#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();
|
||||
|
|
Loading…
Reference in a new issue