mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 13:03:52 +00:00
Fix X11 WSI extension selection logic
This commit is contained in:
parent
bda18bc899
commit
2be2e0fa86
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user