Do more detailed checks for Vulkan availability. Should hopefully solve #10729.

This commit is contained in:
Henrik Rydgård committed 2018-03-17 11:36:16 +01:00
1 parent 1bb7be489f
commit 08c3e13517
5 files changed
+117 -10

No files matched your search

+3 -1
View File
@@ -98,9 +98,11 @@ bool AndroidVulkanContext::InitAPI() {
info.app_name = "PPSSPP";
info.app_ver = gitVer.ToInteger();
info.flags = VULKAN_FLAG_PRESENT_MAILBOX | VULKAN_FLAG_PRESENT_FIFO_RELAXED;
if (VK_SUCCESS != g_Vulkan->CreateInstance(info)) {
VkResult res = g_Vulkan->CreateInstance(info);
if (res != VK_SUCCESS) {
ELOG("Failed to create vulkan context: %s", g_Vulkan->InitError().c_str());
System_SendMessage("toast", "No Vulkan compatible device found. Using OpenGL instead.");
VulkanSetAvailable(false);
delete g_Vulkan;
g_Vulkan = nullptr;
return false;