Merge pull request #3646 from raven02/patch-17

Toggle option "Disable Stencil Test" & "Always Depth Write"
This commit is contained in:
Henrik Rydgård 2013-09-09 00:06:00 -07:00
commit 74418c13bf
4 changed files with 17 additions and 4 deletions

View file

@ -167,6 +167,8 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename)
graphics->Get("TexScalingType", &iTexScalingType, 0);
graphics->Get("TexDeposterize", &bTexDeposterize, false);
graphics->Get("VSyncInterval", &bVSync, false);
graphics->Get("DisableStencilTest", &bDisableStencilTest, false);
graphics->Get("AlwaysDepthWrite", &bAlwaysDepthWrite, false);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Get("Enable", &bEnableSound, true);
@ -322,6 +324,8 @@ void Config::Save() {
graphics->Set("TexScalingType", iTexScalingType);
graphics->Set("TexDeposterize", bTexDeposterize);
graphics->Set("VSyncInterval", bVSync);
graphics->Set("DisableStencilTest", bDisableStencilTest);
graphics->Set("AlwaysDepthWrite", bAlwaysDepthWrite);
IniFile::Section *sound = iniFile.GetOrCreateSection("Sound");
sound->Set("Enable", bEnableSound);