Add ugly hack setting for PowerVR to disable alpha test

Causes glitches but the speedup is truly massive in some games so I relent :/

Please do not report graphics bugs when this is enabled...

Future: Maybe remove this setting except on PowerVR?
This commit is contained in:
Henrik Rydgard committed 2013-10-22 13:00:19 +02:00
1 parent 7d8aed096a
commit bf59f3db73
7 files changed
+19 -4

No files matched your search

+2
View File
@@ -278,6 +278,7 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename)
IniFile::Section *speedhacks = iniFile.GetOrCreateSection("SpeedHacks");
speedhacks->Get("PrescaleUV", &bPrescaleUV, false);
speedhacks->Get("DisableAlphaTest", &bDisableAlphaTest, false);
INFO_LOG(LOADER, "Loading controller config: %s", controllerIniFilename_.c_str());
bSaveSettings = true;
@@ -467,6 +468,7 @@ void Config::Save() {
IniFile::Section *speedhacks = iniFile.GetOrCreateSection("SpeedHacks");
speedhacks->Set("PrescaleUV", bPrescaleUV);
speedhacks->Set("DisableAlphaTest", bDisableAlphaTest);
if (!iniFile.Save(iniFilename_.c_str())) {
ERROR_LOG(LOADER, "Error saving config - can't write ini %s", iniFilename_.c_str());