Win32: Add an UI option to change the GPU backend.

It requires an application restart to work.
This commit is contained in:
The Dax committed 2014-09-14 06:59:27 -04:00
1 parent 2b4ff04c32
commit 436f39d3f6
5 files changed
+62 -1

No files matched your search

+6
View File
@@ -407,6 +407,8 @@ static ConfigSetting graphicsSettings[] = {
ReportedConfigSetting("FrameRate", &g_Config.iFpsLimit, 0),
#ifdef _WIN32
ConfigSetting("FrameSkipUnthrottle", &g_Config.bFrameSkipUnthrottle, false),
ConfigSetting("TemporaryGPUBackend", &g_Config.iTempGPUBackend, -1, false),
ConfigSetting("RestartRequired", &g_Config.bRestartRequired, false, false),
#else
ConfigSetting("FrameSkipUnthrottle", &g_Config.bFrameSkipUnthrottle, true),
#endif
@@ -828,6 +830,10 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
}
CleanRecent();
#ifdef _WIN32
iTempGPUBackend = iGPUBackend;
#endif
}
void Config::Save() {