Cleanup on usage of static vs. dynamic loading (#462)
This commit is contained in:
committed by
Markus Tavenrath
parent
18febd6237
commit
021c7499a0
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user