Skip to content

Ogre on QNX/Wayland - #3863

Closed
martinqnx wants to merge 7 commits into
OGRECave:masterfrom
martinqnx:master
Closed

martinqnx wants to merge 7 commits into
OGRECave:masterfrom
martinqnx:master

Conversation

@martinqnx

Copy link
Copy Markdown

Getting Ogre to run on QNX/Wayland and squashing a few bugs along the way.

QNX uses the EGL/GLES2+ backend, while the compositor is Wayland. Both SDL and Qt5 windowing backends are supported.

martinqnx and others added 7 commits November 27, 2026 09:53
- while this is a QNX-enabling commit, the code changes are not QNX-specific but
  rather constitute a wl backend cleanup

* do not assume the EGL 'platform-native' types are the same as the wl-native
  types when building for EGL/wl;
  the native EGL types for any given platform are fixed, but we may have multiple
  EGL 'non-native' providers. For instance QNX/Weston has screen-based EGL native
  types but EGL/wl has wl-based native types; decouple EGL platform-native types
  from EGL 'provider' types
* for EGL 1.5 and Wayland prefer eglGetPlatformDisplay(EGL_PLATFORM_WAYLAND_KHR)
  and eglCreatePlatformWindowSurface() to obtain EGLDisplay and EGLSurface
* clean up wl EGL rendersystem backend: don't try to establish a new wl display
  connection given the window provider (e.g. SDL) implicitly provides a display
  connection
* split EGL extension query into two: pre-display (client) and post-display
  connection, to allow for early client extension checks
* clean up EGL error checking (ENABLE_EGL_CHECK=1)
* fix uninitialized-at-error FSAA miscParams bug
* Fix getGLConfigFromContext indexing of configs
Co-authored-by: Martin Krastev <mkrastev@qnx.com>
…uild, and

TestContext does not work with wl backends (see ApplicationBase::setup override
by TestContext)
@paroj

paroj commented Nov 28, 2026

Copy link
Copy Markdown
Member

if I read this correctly, all that was needed is using EGL platform ext. Did a cleaner take in #3865. Please report back if it does not work

@paroj paroj closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants