mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Core: Log more on graphics backend failures.
Just so we can tell for sure in logs what's happening.
This commit is contained in:
1 parent
562c5f6485
commit
db93a08fc9
2 files changed
+9
-1
No files matched your search
+6
-1
@@ -357,9 +357,14 @@ static void CheckFailedGPUBackends() {
|
||||
// Use this if you want to debug a graphics crash...
|
||||
if (g_Config.sFailedGPUBackends == "IGNORE")
|
||||
return;
|
||||
else if (!g_Config.sFailedGPUBackends.empty())
|
||||
ERROR_LOG(LOADER, "Failed graphics backends: %s", g_Config.sFailedGPUBackends.c_str());
|
||||
|
||||
// Okay, let's not try a backend in the failed list.
|
||||
g_Config.iGPUBackend = g_Config.NextValidBackend();
|
||||
int newBackend = g_Config.NextValidBackend();
|
||||
if (newBackend != g_Config.iGPUBackend)
|
||||
WARN_LOG(LOADER, "Failed graphics backend switched from %d to %d", g_Config.iGPUBackend, newBackend);
|
||||
g_Config.iGPUBackend = newBackend;
|
||||
// And then let's - for now - add the current to the failed list.
|
||||
if (g_Config.sFailedGPUBackends.empty()) {
|
||||
g_Config.sFailedGPUBackends = StringFromFormat("%d", g_Config.iGPUBackend);
|
||||
|
||||
Reference in new issue
Block a user