mirror of
https://github.com/gwm17/glfw.git
synced 2024-11-26 20:28:49 -05: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 = calloc(2, sizeof(char*));
|
||||||
extensions[0] = strdup("VK_KHR_surface");
|
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");
|
extensions[1] = strdup("VK_KHR_xcb_surface");
|
||||||
else
|
else
|
||||||
extensions[1] = strdup("VK_KHR_xlib_surface");
|
extensions[1] = strdup("VK_KHR_xlib_surface");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user