Check instance creation error just in case

This commit is contained in:
goeiecool9999 2026-04-07 12:17:14 +02:00
parent e25c3bcee6
commit 42ef7657fb

View File

@ -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);
}