From a029709f6859aa13296bcc8480f7aea07256074b Mon Sep 17 00:00:00 2001 From: eleir9268 Date: Mon, 2 Feb 2026 12:02:31 -0500 Subject: [PATCH] QNX: support Wayland backend. (#14950) Co-authored-by: Aaron Bassett Co-authored-by: Felix Xing --- src/video/wayland/SDL_waylandopengles.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/video/wayland/SDL_waylandopengles.c b/src/video/wayland/SDL_waylandopengles.c index 26335bf10b..7826721b5a 100644 --- a/src/video/wayland/SDL_waylandopengles.c +++ b/src/video/wayland/SDL_waylandopengles.c @@ -39,6 +39,10 @@ bool Wayland_GLES_LoadLibrary(SDL_VideoDevice *_this, const char *path) bool result; SDL_VideoData *data = _this->internal; +#if defined(SDL_PLATFORM_QNXNTO) + SDL_GL_SetAttribute(SDL_GL_EGL_PLATFORM, EGL_PLATFORM_WAYLAND_EXT); +#endif + result = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType)data->display, _this->gl_config.egl_platform); Wayland_PumpEvents(_this);