Cleanup on usage of static vs. dynamic loading (#462)

This commit is contained in:
Andreas Süßenbach
2019-12-23 08:45:40 +01:00
committed by Markus Tavenrath
parent 18febd6237
commit 021c7499a0
53 changed files with 69 additions and 72 deletions

View File

@@ -1063,7 +1063,7 @@ int main(int /*argc*/, char** /*argv*/)
// Cleanup
device->waitIdle();
swapChainData.swapChain.reset(); // need to reset swapChain before destroying the surface !
vkDestroySurfaceKHR(*instance, surface, nullptr);
VULKAN_HPP_DEFAULT_DISPATCHER.vkDestroySurfaceKHR(*instance, surface, nullptr);
glfwDestroyWindow(window);
glfwTerminate();
}