mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-27 10:30:08 +01:00
vulkan/wsi: Fix double destroy of present_id_timeline at swapchain create
Fixes: c888da3d48 ("vulkan/wsi: Add mechanism to wait for WSI semaphore unsignal.")
Reviewed-by: Hans-Kristian Arntzen <post@arntzen-software.no>
Signed-off-by: Aitor Camacho <aitor@lunarg.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38754>
This commit is contained in:
parent
fda1262eed
commit
df19ec3020
1 changed files with 0 additions and 1 deletions
|
|
@ -1104,7 +1104,6 @@ wsi_CreateSwapchainKHR(VkDevice _device,
|
|||
sizeof (*swapchain->blit.semaphores),
|
||||
VK_SYSTEM_ALLOCATION_SCOPE_OBJECT);
|
||||
if (!swapchain->blit.semaphores) {
|
||||
wsi_device->DestroySemaphore(_device, swapchain->present_id_timeline, alloc);
|
||||
swapchain->destroy(swapchain, alloc);
|
||||
return VK_ERROR_OUT_OF_HOST_MEMORY;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue