From 2be2e0fa8647b7cc069a067aeefa81334146d46e Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Sun, 21 Feb 2016 18:36:28 +0100 Subject: [PATCH] Fix X11 WSI extension selection logic --- src/x11_window.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/x11_window.c b/src/x11_window.c index 24ebba32..ddfc9159 100644 --- a/src/x11_window.c +++ b/src/x11_window.c @@ -2142,7 +2142,7 @@ char** _glfwPlatformGetRequiredInstanceExtensions(int* count) extensions = calloc(2, sizeof(char*)); extensions[0] = strdup("VK_KHR_surface"); - if (_glfw.vk.KHR_xcb_surface) + if (_glfw.vk.KHR_xcb_surface && _glfw.x11.x11xcb.handle) extensions[1] = strdup("VK_KHR_xcb_surface"); else extensions[1] = strdup("VK_KHR_xlib_surface");