Commit 0a6a5d87 authored by Niklas Haas's avatar Niklas Haas

vulkan: fix double free when swapchain creation fails

parent adab9b76
......@@ -307,7 +307,7 @@ const struct pl_swapchain *pl_vulkan_create_swapchain(const struct pl_vulkan *pl
bool supported = false;
for (int i = 0; i < num_modes; i++)
supported |= (modes[i] == p->protoInfo.presentMode);
if (!supported) {
PL_WARN(vk, "Requested swap mode unsupported by this device, falling "
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment