diff options
| author | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 18:46:50 +1000 |
|---|---|---|
| committer | Nicolas James <nj3ahxac@gmail.com> | 2026-04-07 18:46:50 +1000 |
| commit | 9d6a2beb98085c0ebbddbbb311a5a3a93b4ec202 (patch) | |
| tree | aa0db05989c911d20922b17abf3cfbc28b23e9a1 /src | |
| parent | f35e4abaf7c3f8c43466b14630f32633fee7d4a7 (diff) | |
Notify swapchain deletion before Vulkan deletes it
Diffstat (limited to 'src')
| -rw-r--r-- | src/layer.cc | 4 |
1 files 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 |
