[vulkan] Remove double destroy of the old swapchain

I had forgotten that QFV_CreateSwapchain destroys the old swapchain when
I wrote Vulkan_CreateSwapchain.
This commit is contained in:
Bill Currie 2022-09-26 11:49:11 +09:00
parent d5586730a4
commit 22276ad356

View file

@ -284,10 +284,6 @@ Vulkan_CreateSwapchain (vulkan_ctx_t *ctx)
free (ctx->swapchain); free (ctx->swapchain);
} }
ctx->swapchain = QFV_CreateSwapchain (ctx, old_swapchain); ctx->swapchain = QFV_CreateSwapchain (ctx, old_swapchain);
if (old_swapchain && ctx->swapchain->swapchain != old_swapchain) {
ctx->device->funcs->vkDestroySwapchainKHR (ctx->device->dev,
old_swapchain, 0);
}
} }
static void static void