diff --git a/src/blue_noise.cpp b/src/blue_noise.cpp index 49d04a5..9edb68e 100644 --- a/src/blue_noise.cpp +++ b/src/blue_noise.cpp @@ -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) {