From 9d6a2beb98085c0ebbddbbb311a5a3a93b4ec202 Mon Sep 17 00:00:00 2001 From: Nicolas James Date: Tue, 7 Apr 2026 18:46:50 +1000 Subject: Notify swapchain deletion before Vulkan deletes it --- src/layer.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/layer.cc b/src/layer.cc index e9c863e..6c275ba 100644 --- a/src/layer.cc +++ b/src/layer.cc @@ -774,11 +774,11 @@ DestroySwapchainKHR(VkDevice device, VkSwapchainKHR swapchain, const VkAllocationCallbacks* pAllocator) { const auto context = layer_context.get_context(device); - context->vtable.DestroySwapchainKHR(device, swapchain, pAllocator); - if (context->was_capability_requested) { context->strategy->notify_destroy_swapchain(swapchain); } + + context->vtable.DestroySwapchainKHR(device, swapchain, pAllocator); } static VKAPI_ATTR void VKAPI_CALL -- cgit v1.2.3