Skip to content

EGL crash on context creation with QT_QPA_PLATFORM=wayland - #2739

Open
victorwon2001 wants to merge 1 commit into
melonDS-emu:masterfrom
victorwon2001:fix/issue-2643
Open

EGL crash on context creation with QT_QPA_PLATFORM=wayland#2739
victorwon2001 wants to merge 1 commit into
melonDS-emu:masterfrom
victorwon2001:fix/issue-2643

Conversation

@victorwon2001

Copy link
Copy Markdown

Summary

  • Use nativeResourceForWindow("surface", ...) for the Wayland window handle on Qt 6.5 through 6.8, where winId() is not a wl_surface*.
  • Keep QWaylandApplication::display() for the display connection and retain the existing winId() path on Qt 6.9+, where Qt returns the native Wayland surface.
  • Keep the Qt < 6.5, X11, EGL, and build-system paths unchanged.

Fixes #2643

Testing

Built successfully with Qt 6.8.3 with Wayland enabled and compiled the same source with Wayland disabled. Under a headless Weston compositor, Qt 6.8.3 remained stable with OpenGL using the default EGL platform, EGL_PLATFORM=wayland, and EGL_PLATFORM=surfaceless; the xcb path also remained running under Xvfb.

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.

EGL crash on context creation with QT_QPA_PLATFORM=wayland

1 participant