Overv / VulkanTutorial

Tutorial for the Vulkan graphics and compute API
https://vulkan-tutorial.com
Creative Commons Attribution Share Alike 4.0 International
3.08k stars 513 forks source link

02_validation_layers.cpp cleanup suggestion #220

Closed hwpfeil closed 3 years ago

hwpfeil commented 3 years ago

When I commented out the call to DestroyDebugUtilsMessengerEXT in cleanup(), no errors. However when I added vkDestroyInstance to cleanup() just after 'if (enableValidationLayers){}', I got the validation-layer errors as advertised, followed by "Unloading layer library." vkDestroyInstance(instance, nullptr); Linux, kernel 5.4.85, mesa-20.3.1-x86_64, vulkan-sdk-1.2.162 from LunarG.

hwpfeil commented 3 years ago

My mistake! The call to vkDestroyInstance() is in the tutorial and code.

hwpfeil commented 3 years ago

IBK: Idiot Behind Keyoard