mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-25 22:01:33 +00:00
[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:
parent
d5586730a4
commit
22276ad356
1 changed files with 0 additions and 4 deletions
|
@ -284,10 +284,6 @@ Vulkan_CreateSwapchain (vulkan_ctx_t *ctx)
|
|||
free (ctx->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
|
||||
|
|
Loading…
Reference in a new issue