Don't default to Vulkan on any 32-bit Android devices.

See issue #14439
This commit is contained in:
Henrik Rydgård committed 2021-08-21 21:52:45 +02:00
1 parent ba1b900bf8
commit 37b78fd40e
1 file changed
+6 -2
+6 -2
View File
@@ -668,11 +668,15 @@ static int DefaultGPUBackend() {
return (int)GPUBackend::DIRECT3D11;
}
#elif PPSSPP_PLATFORM(ANDROID)
// Default to Vulkan only on Oreo 8.1 (level 27) devices or newer. Drivers before
// were generally too unreliable to default to (with some exceptions, of course).
// Default to Vulkan only on Oreo 8.1 (level 27) devices or newer, and only
// on ARM64 and x86-64. Drivers before, and on other archs, are generally too
// unreliable to default to (with some exceptions, of course).
#if PPSSPP_ARCH(64BIT)
if (System_GetPropertyInt(SYSPROP_SYSTEMVERSION) >= 27) {
return (int)GPUBackend::VULKAN;
}
#endif
#endif
// TODO: On some additional Linux platforms, we should also default to Vulkan.
return (int)GPUBackend::OPENGL;