layers: Add extension-enabled check to vkDestroySurfaceKHR().
authorIan Elliott <ianelliott@google.com>
Fri, 29 Apr 2016 19:03:17 +0000 (13:03 -0600)
committerTobin Ehlis <tobine@google.com>
Mon, 2 May 2016 19:43:32 +0000 (13:43 -0600)
commit33102b40f60a2682451bebd779feaea68edfeecc
tree5e68c7b63b7fd68a3c25af145fb268d95c62c06e
parent2358e931b55effa0cb99b4e2aaa4691352964f5c
layers: Add extension-enabled check to vkDestroySurfaceKHR().

Because the WSI functions are statically exported (i.e. no need to call gpa()
functions), the swapchain layer is supposed to issue an error if any WSI
function is called without its corresponding extension being enabled.  For
example, the VK_KHR_swapchain extension must be enabled before the
vkCreateSwapchainKHR() function is called.
layers/swapchain.cpp