Cleanup on usage of static vs. dynamic loading (#462)
This commit is contained in:
committed by
Markus Tavenrath
parent
18febd6237
commit
021c7499a0
@@ -39,6 +39,7 @@ add_executable(RayTracing
|
||||
)
|
||||
|
||||
set_target_properties(RayTracing PROPERTIES FOLDER "Samples")
|
||||
target_compile_definitions(RayTracing PUBLIC VULKAN_HPP_DISPATCH_LOADER_DYNAMIC=1)
|
||||
target_include_directories(RayTracing PUBLIC
|
||||
${CMAKE_SOURCE_DIR}/glslang
|
||||
${CMAKE_SOURCE_DIR}/glfw/include
|
||||
@@ -51,5 +52,4 @@ target_include_directories(RayTracing PUBLIC
|
||||
target_link_libraries(RayTracing PUBLIC glslang SPIRV
|
||||
legacy_stdio_definitions.lib
|
||||
${CMAKE_SOURCE_DIR}/builds/VS2017_64/glfw/src/Debug/glfw3.lib
|
||||
"${Vulkan_LIBRARIES}"
|
||||
)
|
||||
|
||||
@@ -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