From 05c6171c04df6f3747f1c9ab6e7b50ef3256ac03 Mon Sep 17 00:00:00 2001 From: C Stout Date: Fri, 20 Aug 2021 13:19:01 -0700 Subject: Fix error messages upon failure to connect to window systems. Change-Id: I650958a8b2607eb3402eb6531909881d4a2ccc0f --- cube/cube.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'cube/cube.cpp') diff --git a/cube/cube.cpp b/cube/cube.cpp index ddbd1fc9..7c836524 100644 --- a/cube/cube.cpp +++ b/cube/cube.cpp @@ -1065,9 +1065,7 @@ void Demo::init_connection() { connection = xcb_connect(nullptr, &scr); if (xcb_connection_has_error(connection) > 0) { - printf( - "Cannot find a compatible Vulkan installable client driver " - "(ICD).\nExiting ...\n"); + printf("Cannot connect to XCB.\nExiting ...\n"); fflush(stdout); exit(1); } @@ -1081,7 +1079,7 @@ void Demo::init_connection() { display = wl_display_connect(nullptr); if (display == nullptr) { - printf("Cannot find a compatible Vulkan installable client driver (ICD).\nExiting ...\n"); + printf("Cannot connect to wayland.\nExiting ...\n"); fflush(stdout); exit(1); } -- cgit v1.2.3