From 161a32b4a2e4c2221a82b0f4698f0e9e007755ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 9 Nov 2021 23:05:23 +0100 Subject: [PATCH] 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 --- UI/NativeApp.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UI/NativeApp.cpp b/UI/NativeApp.cpp index ccb68c5bd2..ce00648c6b 100644 --- a/UI/NativeApp.cpp +++ b/UI/NativeApp.cpp @@ -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;