Minor fix
Fix debug messenger initialization check.
This commit is contained in:
parent
6ed76af210
commit
03b3c90e9a
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue