vulkaninfo: Check VkResult of vkGetPhysicalDeviceSurfaceSupportKHR
authorPetr Kraus <petr_kraus@email.cz>
Thu, 24 Jan 2019 16:57:39 +0000 (17:57 +0100)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Thu, 24 Jan 2019 17:30:03 +0000 (10:30 -0700)
patch #125

vulkaninfo/vulkaninfo.c

index 7857d2c..99dece5 100644 (file)
@@ -3469,6 +3469,7 @@ static void AppGpuDumpQueueProps(const struct AppGpu *gpu, uint32_t id, FILE *ou
     VkBool32 supports_present = VK_FALSE;
     if (gpu->inst->surface) {
         VkResult err = vkGetPhysicalDeviceSurfaceSupportKHR(gpu->obj, id, gpu->inst->surface, &supports_present);
+        if( err ) ERR_EXIT(err);
     }
 
     if (html_output) {