mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-08 17:31:29 -06:00
Check instance creation error just in case
This commit is contained in:
parent
e25c3bcee6
commit
42ef7657fb
@ -429,7 +429,10 @@ static void LinuxBreathOfTheWildWorkaround(VkInstance& instance, const VkInstanc
|
||||
|
||||
// recreate the vulkan instance to update debug setting
|
||||
vkDestroyInstance(instance, nullptr);
|
||||
vkCreateInstance(create_info, nullptr, &instance);
|
||||
VkResult err = vkCreateInstance(create_info, nullptr, &instance);
|
||||
// re-check for errors just in case.
|
||||
if (err != VK_SUCCESS)
|
||||
throw std::runtime_error(fmt::format("Unable to re-create a Vulkan instance after RADV/LLVM workaround: {}", err));
|
||||
InitializeInstanceVulkan(instance);
|
||||
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user