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)
committerJesse Hall <jessehall@google.com>
Thu, 15 Dec 2016 22:39:50 +0000 (14:39 -0800)
commitc556562471e8ed27360adae57e17fc4bfa2cfa6c
treea35f260a0ed81123807bb55202461e4a53f54cfc
parenta9cc65f753b15339e70a2376c6878604e2b16377
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
(cherry picked from commit d78c2e8a0807ff45db4cb643cc2ef38eafd22551)
vulkan/libvulkan/swapchain.cpp