mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
Do more detailed checks for Vulkan availability. Should hopefully solve #10729.
This commit is contained in:
1 parent
1bb7be489f
commit
08c3e13517
5 files changed
+117
-10
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user