mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv: don't crash on null swapchain destroy.
Just return if the passed in swapchain is NULL. Fixes: dEQP-VK.wsi.xlib.swapchain.destroy.null_handle Cc: "13.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
253fa25d09
commit
38ab625c5f
1 changed files with 3 additions and 0 deletions
|
|
@ -288,6 +288,9 @@ void radv_DestroySwapchainKHR(
|
|||
RADV_FROM_HANDLE(wsi_swapchain, swapchain, _swapchain);
|
||||
const VkAllocationCallbacks *alloc;
|
||||
|
||||
if (!_swapchain)
|
||||
return;
|
||||
|
||||
if (pAllocator)
|
||||
alloc = pAllocator;
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue