OSDN Git Service

libvulkan: add NULL check to DestroySwapchainKHR
authorDaniel Koch <dkoch@nvidia.com>
Tue, 13 Dec 2016 23:45:13 +0000 (18:45 -0500)
committerDaniel Koch <dkoch@nvidia.com>
Thu, 15 Dec 2016 15:57:54 +0000 (10:57 -0500)
commitd78c2e8a0807ff45db4cb643cc2ef38eafd22551
tree0afec51317e37b6b28432aa203cc13abd0872168
parenta2a7195e232e90a99b88263f2be5b791b03f1c7f
libvulkan: add NULL check to DestroySwapchainKHR

vkDestroySwapchainKHR is required to silently ignore NULL handles
that are provided to it to destroy.
This adds an early return if swapchain_handle is NULL.

Test: dEQP-VK.wsi.android.swapchain.destroy.null_handle (VK 1.0.2 CTS)

Change-Id: Ic230f114a680210cb0e0de931b17e4d70fb27f44
vulkan/libvulkan/swapchain.cpp