Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force PyOpenGL to use GLX #2314

Merged
merged 1 commit into from Feb 7, 2023
Merged

force PyOpenGL to use GLX #2314

merged 1 commit into from Feb 7, 2023

Conversation

SebKuzminsky
Copy link
Collaborator

On Bookworm and newer pyopengl detects if it's running on Wayland, and chooses EGL there. This is problematic because the rest of LinuxCNC is still on GLX, and (as i understand it) one should not mix GLX and EGL within a single application.

See #2264 for some details.

The correct fix is probably to teach our code to either use GLX everywhere (for when running on X, and like it does after this commit) or EGL everywhere (for when running on Wayland).

This commit fixes Axis on Wayland on Bookworm for me.

On Bookworm and newer pyopengl detects if it's running on Wayland, and
chooses EGL there.  This is problematic because the rest of LinuxCNC is
still on GLX, and (as i understand it) one should not mix GLX and EGL
within a single application.

See <#2264> for some details.

The correct fix is probably to teach our code to either use GLX everywhere
(for when running on X, and like it does after this commit) or EGL
everywhere (for when running on Wayland).

This commit fixes Axis on Wayland on Bookworm for me.
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.

None yet

1 participant