vulkaninfo: Prevent surface creation silent failure
authorPetr Kraus <petr_kraus@email.cz>
Wed, 6 Mar 2019 00:09:58 +0000 (01:09 +0100)
committerjeremyk-lunarg <jeremyk@lunarg.com>
Thu, 7 Mar 2019 20:05:44 +0000 (13:05 -0700)
vulkaninfo/vulkaninfo.c

index f27b892..1113667 100644 (file)
@@ -1206,7 +1206,7 @@ static void AppCreateXcbWindow(struct AppInstance *inst) {
 
 static VkSurfaceKHR AppCreateXcbSurface(struct AppInstance *inst) {
     if (!inst->xcb_connection) {
-        return VK_NULL_HANDLE;
+        ERR_EXIT(VK_ERROR_INITIALIZATION_FAILED);
     }
 
     VkXcbSurfaceCreateInfoKHR xcb_createInfo;