mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-27 04:08:37 +01: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
@@ -132,6 +132,18 @@ void MainThreadFunc() {
|
||||
bool performingRestart = NativeIsRestarting();
|
||||
NativeInit(static_cast<int>(args.size()), &args[0], "1234", "1234", nullptr);
|
||||
|
||||
if (g_Config.iGPUBackend == (int)GPUBackend::OPENGL) {
|
||||
if (!useEmuThread) {
|
||||
// Okay, we must've switched to OpenGL. Let's flip the emu thread on.
|
||||
useEmuThread = true;
|
||||
setCurrentThreadName("Render");
|
||||
}
|
||||
} else if (useEmuThread) {
|
||||
// We must've failed over from OpenGL, flip the emu thread off.
|
||||
useEmuThread = false;
|
||||
setCurrentThreadName("Emu");
|
||||
}
|
||||
|
||||
if (g_Config.sFailedGPUBackends.find("ALL") != std::string::npos) {
|
||||
Reporting::ReportMessage("Graphics init error: %s", "ALL");
|
||||
|
||||
|
||||
Reference in new issue
Block a user