Skip to content

Devel - #3864

Merged
paroj merged 3 commits into
OGRECave:masterfrom
paroj:devel
Nov 28, 2026
Merged

Devel#3864
paroj merged 3 commits into
OGRECave:masterfrom
paroj:devel

Conversation

@paroj

@paroj paroj commented Nov 28, 2026

Copy link
Copy Markdown
Member

No description provided.

…wWindow

miscParams is declared optional and Root::createRenderWindow forwards the
caller's pointer as-is, so creating a window without parameters
dereferences null instead of falling back to the defaults.
Wayland windows can only present to the window provider's connection, so
without a compositor the backend could neither run nor be tested headless,
while the X11 backend simply renders into a pbuffer. Treat a missing
display as offscreen and stop opening a private connection, which no
surface could have been presented on anyway.
currentGLContext is meant to render with a context the application has
already made current. That context lives on the application's EGL display,
but the X11 window replaced eglGetCurrentDisplay() with Ogre's own display
and picked a config from it, so eglMakeCurrent failed with EGL_BAD_CONTEXT.
Keep the current display, take the config from the context -- found by
EGL_CONFIG_ID, not by indexing eglGetConfigs() -- and query the visual and
surface on that display.
@paroj
paroj merged commit 124dbe5 into OGRECave:master Nov 28, 2026
9 checks passed
@paroj
paroj deleted the devel branch November 28, 2026 13:03
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.

1 participant