QNX: support Wayland backend. (#14950)
Co-authored-by: Aaron Bassett <abassett@qnx.com> Co-authored-by: Felix Xing <fxing@qnx.com>
This commit is contained in:
@@ -39,6 +39,10 @@ bool Wayland_GLES_LoadLibrary(SDL_VideoDevice *_this, const char *path)
|
|||||||
bool result;
|
bool result;
|
||||||
SDL_VideoData *data = _this->internal;
|
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);
|
result = SDL_EGL_LoadLibrary(_this, path, (NativeDisplayType)data->display, _this->gl_config.egl_platform);
|
||||||
|
|
||||||
Wayland_PumpEvents(_this);
|
Wayland_PumpEvents(_this);
|
||||||
|
|||||||
Reference in New Issue
Block a user