Redirect the user to download the D3D9 runtime if D3D9 is not available and they don't want to switch to OpenGL.

Maybe should also update the messagebox text somehow...
This commit is contained in:
Henrik Rydgård 2018-03-25 00:46:11 +01:00
parent 0843e2cb98
commit b0a22fb5c7

View File

@ -184,10 +184,15 @@ void MainThreadFunc() {
g_Config.Save();
W32Util::ExitAndRestart();
} else {
if (g_Config.iGPUBackend == (int)GPUBackend::DIRECT3D9) {
// Allow the user to download the DX9 runtime.
LaunchBrowser("https://www.microsoft.com/en-us/download/details.aspx?id=34429");
}
}
// No safe way out without graphics.
exit(1);
ExitProcess(1);
}
GraphicsContext *graphicsContext = g_graphicsContext;