From f79418459fea1fdf8b1a9f7456e8f97bf8f5a734 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Wed, 9 Mar 2016 09:21:07 +0100 Subject: [PATCH] Ability to compile now with --enable-wayland and --disable-x11 defined --- gfx/common/vulkan_common.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/common/vulkan_common.c b/gfx/common/vulkan_common.c index e5927c9f1f..75bbc757f5 100644 --- a/gfx/common/vulkan_common.c +++ b/gfx/common/vulkan_common.c @@ -17,9 +17,11 @@ #include "../../config.h" #endif +#ifdef HAVE_X11 #ifdef HAVE_XCB #include #endif +#endif #include #include @@ -1485,6 +1487,7 @@ bool vulkan_surface_create(gfx_ctx_vulkan_data_t *vk, #endif break; case VULKAN_WSI_XCB: +#ifdef HAVE_X11 #ifdef HAVE_XCB { VkXcbSurfaceCreateInfoKHR surf_info; @@ -1501,6 +1504,7 @@ bool vulkan_surface_create(gfx_ctx_vulkan_data_t *vk, != VK_SUCCESS) return false; } +#endif #endif break; case VULKAN_WSI_MIR: