Minor fix

Fix debug messenger initialization check.
This commit is contained in:
Stephen Seo 2024-03-21 12:31:38 +09:00
parent 6ed76af210
commit 03b3c90e9a

View file

@ -263,7 +263,7 @@ image::Bl dither::blue_noise(int width, int height, int threads,
auto create_debug_utils_messenger_func =
(PFN_vkCreateDebugUtilsMessengerEXT)vkGetInstanceProcAddr(
instance, "vkCreateDebugUtilsMessengerEXT");
if (create_debug_utils_messenger_func != nullptr &&
if (create_debug_utils_messenger_func == nullptr ||
create_debug_utils_messenger_func(instance, &debug_create_info,
nullptr,
&debug_messenger) != VK_SUCCESS) {