- fixed flags for gl_lightmode.
With how this is being handled now, the CVAR needs to have the CVAR_GLOBALCONFIG flag and CVAR_NOINITCALL unset or it simply won't work right. Since its meaning has completely changed now (i.e. it's mainly a performance switch to a less demanding implementation instead of being able to select vastly different lighting methods) making it global is more sensible.
This commit is contained in:
parent
23ffaaecb0
commit
7fbd99ca0f
2 changed files with 3 additions and 3 deletions
|
|
@ -612,7 +612,7 @@ void FGameConfigFile::DoGlobalSetup ()
|
|||
if (const auto var = FindCVar("gl_lightmode", NULL))
|
||||
{
|
||||
UCVarValue v = var->GetGenericRep(CVAR_Int);
|
||||
v.Int /= 8; // all legacy modes map to 0, ZDoom software to 1 and Vanilla software to 2.
|
||||
v.Int = v.Int == 16 ? 2 : v.Int == 8 ? 1 : 0;
|
||||
var->SetGenericRep(v, CVAR_Int);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue