diff --git a/example/Vulkan/RenderSurfaceCreater.cpp b/example/Vulkan/RenderSurfaceCreater.cpp index 43bfa05c..224f0380 100644 --- a/example/Vulkan/RenderSurfaceCreater.cpp +++ b/example/Vulkan/RenderSurfaceCreater.cpp @@ -281,7 +281,7 @@ namespace VkDescriptorPool desc_pool; - if(!vkCreateDescriptorPool(device,&dp_create_info,nullptr,&desc_pool)) + if(vkCreateDescriptorPool(device,&dp_create_info,nullptr,&desc_pool)!=VK_SUCCESS) return(nullptr); return desc_pool;