On Android 11 and later, let's not fallback to OpenGL at all.

Not meaningful since Vulkan is stable and widely used now and we really
don't do anything crazy when drawing the menu.

See #15079
This commit is contained in:
Henrik Rydgård 2021-11-09 23:05:23 +01:00
parent df9be770d6
commit 161a32b4a2

View file

@ -389,6 +389,15 @@ static void CheckFailedGPUBackends() {
return;
#endif
#if PPSSPP_PLATFORM(ANDROID)
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 30) {
// In Android 11 or later, Vulkan is as stable as OpenGL, so let's not even bother.
// Have also seen unexplained issues with random fallbacks to OpenGL for no good reason,
// especially when debugging.
return;
}
#endif
// We only want to do this once per process run and backend, to detect process crashes.
// If NativeShutdown is called before we finish, we might call this multiple times.
static int lastBackend = -1;