mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-23 02:41:30 +00:00
[vulkan] Fix what looks like a thinko
It looked like the code would have deleted a replacement swapchain instead of the one being replaced.
This commit is contained in:
parent
a0d47de439
commit
51d6ec7c8c
1 changed files with 1 additions and 1 deletions
|
@ -245,7 +245,7 @@ Vulkan_CreateSwapchain (vulkan_ctx_t *ctx)
|
|||
free (ctx->swapchain);
|
||||
}
|
||||
ctx->swapchain = QFV_CreateSwapchain (ctx, old_swapchain);
|
||||
if (ctx->swapchain->swapchain == old_swapchain) {
|
||||
if (old_swapchain && ctx->swapchain->swapchain != old_swapchain) {
|
||||
ctx->device->funcs->vkDestroySwapchainKHR (ctx->device->dev,
|
||||
old_swapchain, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue