mcfletch / pyopengl

Repository for the PyOpenGL Project
Other
318 stars 101 forks source link

GL library fallback for GLX broken in 3.1.7 #101

Closed swt2c closed 1 year ago

swt2c commented 1 year ago

The fallback from OpenGL to GL for the GLX platform doesn't work in 3.1.7. This is because the ctypesloader.loadLibrary doesn't throw exceptions when the library can't be found (perhaps it did at one point???). So, either ctypesloader.loadLibrary should be updated to throw exceptions, or GLX should be updated to match EGL, where EGL supports both library names but doesn't check for exceptions.

https://github.com/mcfletch/pyopengl/blob/master/OpenGL/platform/glx.py#L13

mcfletch commented 1 year ago

Okay, updated the glx to check for glx, opengl and gl when doing glx lookup, and opengl and gl for opengl lookup.

swt2c commented 1 year ago

Did you push the changes somewhere?

mcfletch commented 1 year ago

They are in develop head, will show up in the next release. I'm currently working through the ticket backlog to see what else I can get addressed in my day-or-so of available time.