diff options
Diffstat (limited to 'demos/cube.c')
| -rw-r--r-- | demos/cube.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demos/cube.c b/demos/cube.c index c6d7d79c..17617e5e 100644 --- a/demos/cube.c +++ b/demos/cube.c @@ -2947,7 +2947,7 @@ static void demo_init_connection(struct demo *demo) { int scr; demo->connection = xcb_connect(NULL, &scr); - if (demo->connection == NULL) { + if (xcb_connection_has_error(demo->connection) > 0) { printf("Cannot find a compatible Vulkan installable client driver " "(ICD).\nExiting ...\n"); fflush(stdout); |
