mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 02:48:06 +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>
(cherry picked from commit 38ab625c5f)
This commit is contained in:
parent
a3f628ca25
commit
7bbe351e49
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