mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Windows: Show a message when failing over backend.
Best that we make sure people know when this has happened, probably. Also, fix the fallback to OpenGL, which was broken on Windows.
This commit is contained in:
1 parent
8b6d2f9025
commit
de7aa5b64e
3 files changed
+23
-2
No files matched your search
+5
-2
@@ -402,8 +402,11 @@ static void CheckFailedGPUBackends() {
|
||||
|
||||
// Okay, let's not try a backend in the failed list.
|
||||
g_Config.iGPUBackend = g_Config.NextValidBackend();
|
||||
if (lastBackend != g_Config.iGPUBackend)
|
||||
WARN_LOG(LOADER, "Failed graphics backend switched from %d to %d", lastBackend, g_Config.iGPUBackend);
|
||||
if (lastBackend != g_Config.iGPUBackend) {
|
||||
std::string param = GPUBackendToString((GPUBackend)lastBackend) + " -> " + GPUBackendToString((GPUBackend)g_Config.iGPUBackend);
|
||||
System_SendMessage("graphics_failedBackend", param.c_str());
|
||||
WARN_LOG(LOADER, "Failed graphics backend switched from %s (%d to %d)", param.c_str(), lastBackend, g_Config.iGPUBackend);
|
||||
}
|
||||
// And then let's - for now - add the current to the failed list.
|
||||
if (g_Config.sFailedGPUBackends.empty()) {
|
||||
g_Config.sFailedGPUBackends = GPUBackendToString((GPUBackend)g_Config.iGPUBackend);
|
||||
|
||||
Reference in new issue
Block a user