From 03b3c90e9a629ee399e91fe4e52394f0752a728c Mon Sep 17 00:00:00 2001 From: Stephen Seo Date: Thu, 21 Mar 2024 12:31:38 +0900 Subject: [PATCH] Minor fix Fix debug messenger initialization check. --- src/blue_noise.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {