mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-19 17:29:06 +02:00
Track the running GPU backend separate from config.
This way we can change the config directly when we want to save a new setting, rather than having hacks to use a temp var.
This commit is contained in:
1 parent
8b27bc51f5
commit
aa0055cea7
12 files changed
+49
-43
No files matched your search
@@ -666,13 +666,15 @@ namespace MainWindow {
|
||||
break;
|
||||
|
||||
case ID_OPTIONS_DIRECTX:
|
||||
g_Config.iTempGPUBackend = GPU_BACKEND_DIRECT3D9;
|
||||
g_Config.iGPUBackend = GPU_BACKEND_DIRECT3D9;
|
||||
// TODO: Remove once software renderer supports D3D9.
|
||||
g_Config.bSoftwareRendering = false;
|
||||
g_Config.bRestartRequired = true;
|
||||
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
|
||||
break;
|
||||
|
||||
case ID_OPTIONS_OPENGL:
|
||||
g_Config.iTempGPUBackend = GPU_BACKEND_OPENGL;
|
||||
g_Config.iGPUBackend = GPU_BACKEND_OPENGL;
|
||||
g_Config.bRestartRequired = true;
|
||||
PostMessage(MainWindow::GetHWND(), WM_CLOSE, 0, 0);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user