Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/vulkan: fix bug when VK_KHR_surface is missing
We call vkDestroySurfaceKHR indiscriminately, even if VK_KHR_surface was not even enabled. (Since it's listed under `opt_extensions`, this is a valid case) Easiest way to work around this special case is to just avoid calling vkDestroySurfaceKHR if we never created a surface, since in that case `surf` will still be NULL.
- Loading branch information