Merge branch 'fix/wayland-egl-failure-crash' of https://github.com/Sinity/kitty

This commit is contained in:
Kovid Goyal 2026-07-12 09:21:07 +05:30
commit 95ded6817b
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

2
glfw/wl_window.c vendored
View file

@ -1509,7 +1509,7 @@ int _glfwPlatformCreateWindow(
// and only then create the OpenGL context.
if (window->wl.visible) loop_till_window_fully_created(window);
debug("Creating OpenGL context and attaching it to window\n");
if (ctxconfig->client != GLFW_NO_API) attach_opengl_context_to_window(window, ctxconfig, fbconfig);
if (ctxconfig->client != GLFW_NO_API && !attach_opengl_context_to_window(window, ctxconfig, fbconfig)) return false;
return true;
}