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);
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);