mirror of
https://github.com/love2d/love.git
synced 2026-08-12 16:40:57 +02:00
android: attempt to use vulkan by default when vulkan 1.1+ is supported.
This commit is contained in:
@@ -1757,6 +1757,13 @@ int Graphics::rateDeviceSuitability(VkPhysicalDevice device, bool querySwapChain
|
||||
if (!deviceFeatures.fillModeNonSolid)
|
||||
score = 0;
|
||||
|
||||
#ifdef LOVE_ANDROID
|
||||
// Attempt to reduce potential driver bugs on Android by not allowing Vulkan
|
||||
// if the device only supports Vulkan 1.0.
|
||||
if (deviceProperties.apiVersion < VK_API_VERSION_1_1)
|
||||
score = 0;
|
||||
#endif
|
||||
|
||||
return score;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user