Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5616>
VkSwapchainKHR swapchain,
const VkAllocationCallbacks* pAllocator)
{
+ if (swapchain == VK_NULL_HANDLE) {
+ struct device_data *device_data = FIND(struct device_data, device);
+ device_data->vtable.DestroySwapchainKHR(device, swapchain, pAllocator);
+ return;
+ }
+
struct swapchain_data *swapchain_data =
FIND(struct swapchain_data, swapchain);