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

GetCurrentContext return value check too strict with wayland? #104

Open
gerolfscherr opened this issue Oct 4, 2023 · 1 comment
Open

Comments

@gerolfscherr
Copy link

my setup: pygame 2.5.2, PyOpenGL 3.1.7 Ubuntu 22.04.3 LTS (XDG_SESSION_TYPE="wayland")
running the pygame example 'glcube.py'
yields: "OpenGL.error.Error: Attempt to retrieve context when no valid context"

On my system the call ''platform.GetCurrentContext()" returns 0, which looks like a reasonable value, but is considered invalid in this line:

if context == 0:

If i comment out the check, the example works. So maybe the check is too strict? (should check for None instead of 0?)

see also pygame/pygame#3110

@TTimo
Copy link

TTimo commented Apr 25, 2024

Looks to be a problem for us also (in WSL), +1

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

No branches or pull requests

2 participants