From 39e98da9b38529a3af4ae706d9a9fc8ff8060fed Mon Sep 17 00:00:00 2001 From: Rasmus Date: Tue, 28 Mar 2023 19:42:28 -0700 Subject: [PATCH] Print helpful error message when KMS is not available init_kms fails without explanation if vkcube is build without the presence of vulkan_intel.h, leading to confusing error message "failed to initialize kms". Temporary remedy for #46 --- main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main.c b/main.c index 068b0b3..ec0e850 100644 --- a/main.c +++ b/main.c @@ -674,6 +674,7 @@ mainloop_vt(struct vkcube *vc) static int init_kms(struct vkcube *vc) { + fprintf(stderr, "vkcube not built with KMS support (no vulkan_intel.h)\n"); return -1; }