Skip to content

Commit

Permalink
Windows buildfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Oct 7, 2018
1 parent 3a87e34 commit f0ce3cb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Windows/EmuThread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ void MainThreadFunc() {
if (performingRestart) {
// Okay, switching graphics didn't work out. Probably a driver bug - fallback to restart.
// This happens on NVIDIA when switching OpenGL -> Vulkan.
g_Config.Save();
g_Config.Save("fallback");
W32Util::ExitAndRestart();
}

Expand Down Expand Up @@ -196,7 +196,7 @@ void MainThreadFunc() {
g_Config.iGPUBackend = (int)nextBackend;
// Clear this to ensure we try their selection.
g_Config.sFailedGPUBackends.clear();
g_Config.Save();
g_Config.Save("save failed gpu backends");

W32Util::ExitAndRestart();
} else {
Expand Down
2 changes: 1 addition & 1 deletion Windows/GPU/D3D11Context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ bool D3D11Context::Init(HINSTANCE hInst, HWND wnd, std::string *error_message) {
// Change the config to D3D and restart.
g_Config.iGPUBackend = (int)GPUBackend::DIRECT3D9;
g_Config.sFailedGPUBackends.clear();
g_Config.Save();
g_Config.Save("change to d3d9 from d3d11");

W32Util::ExitAndRestart();
}
Expand Down
2 changes: 1 addition & 1 deletion Windows/GPU/WindowsGLContext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ bool WindowsGLContext::InitFromRenderThread(std::string *error_message) {
bool d3d9 = IDYES == MessageBox(hWnd_, whichD3D9.c_str(), title.c_str(), MB_YESNO);
g_Config.iGPUBackend = d3d9 ? (int)GPUBackend::DIRECT3D9 : (int)GPUBackend::DIRECT3D11;
g_Config.sFailedGPUBackends.clear();
g_Config.Save();
g_Config.Save("change from gl to d3d");

W32Util::ExitAndRestart();
}
Expand Down

0 comments on commit f0ce3cb

Please sign in to comment.