Skip to content

Qt: Request a specific GL version so GLES doesn't get used on Wayland. - #1651

Merged
phkahler merged 1 commit into
solvespace:masterfrom
WickedSmoke:qt
Dec 10, 2025
Merged

Qt: Request a specific GL version so GLES doesn't get used on Wayland.#1651
phkahler merged 1 commit into
solvespace:masterfrom
WickedSmoke:qt

Conversation

@WickedSmoke

Copy link
Copy Markdown
Contributor

Without this "QT_QPA_PLATFORM=xcb" is needed on Wayland or else the shaders may not compile.

Fixes issue #1650.

Without this "QT_QPA_PLATFORM=xcb" is needed on Wayland or else the
shaders may not compile.
@phkahler

phkahler commented Dec 10, 2025

Copy link
Copy Markdown
Member

@WickedSmoke This is fine, I'll merge it. But I thought the GTK version was using GLES because back then they mistakenly thought Wayland apps needed to use it (they don't). Maybe it just needed to be specified like in this patch?

Edit: Also, I'm running on Wayland (gnome) and it works either way. At some point I'll uninstall XWayland to be sure things can't quietly fall back to that.

@phkahler phkahler linked an issue Dec 10, 2025 that may be closed by this pull request
@phkahler
phkahler merged commit eaefb5d into solvespace:master Dec 10, 2025
3 of 4 checks passed
@WickedSmoke

Copy link
Copy Markdown
Contributor Author

I don't see anywhere in guigtk.cpp where a version is specified.

The header in rendergl3.cpp says it's for "OpenGL 3.0", but in a comment later it says "core OpenGL 3 profile". Profiles were added in 3.2, so all the platforms should be requesting the 3.2 core profile.

@WickedSmoke
WickedSmoke deleted the qt branch December 10, 2025 16:22
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.

solvespace-qt - Cannot compile shader error on start

2 participants