Fix X11 WSI extension selection logic

This commit is contained in:
Camilla Berglund 2016-02-21 18:36:28 +01:00
parent bda18bc899
commit 2be2e0fa86

View File

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