-
Notifications
You must be signed in to change notification settings - Fork 102
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
Regression to access to glInitFramebufferObjectARB in v3.1.6 #88
Comments
If i launch my application with the env Here is my env
|
So this seems like a side-effect from enhancing support for wayland. Specifically it looks like the code that checks to see whether we are using wayland is passing (i.e. it says "this is a wayland environment") but pygame is AFAICT using x-wayland to run. If you try to make pygame use wayland (with Not really sure what the correct solution is here, options:
For instance, this patch "fixes" the immediate issue (but with a huge run-time cost, so not likely to land)
|
The same issue is there with PyQt|PySide depending on the Qt Platform Abstraction in use. No matter of the default detection mechanism, wouldn't it make sense/be possible to have an way to set the platform programmatically? For instance, with PyQt|PySide, it is possible to retrieve the platform at runtime with QGuiApplication.platformName, and that could be used to set it in pyopengl. |
Sure, having it be a thing you can set via code is fine. But it has to be set basically at import-time to avoid funky issues, so you wind up with a thin wrapper around setting the PYOPENGL_PLATFORM environment variable before import. Just added a function What I was looking for was a way to properly select the platform automatically. The primary concern being that I don't want to load e.g. a whole X-windows client library just to see if the process is running an X window, same issue with Qt/Gtk/etc. Way too heavy-weight to use for 'guess which approach to use'. Secondary concern is that the software doesn't have to start the X/Wayland connection immediately; and in theory at any moment it could make a choice to do X vs. Wayland... so until we see an actual rendering context there really isn't a right guess as to which type of context it is AFAICS. |
Hi,
I have a problem with some of my machine with project using PyOpenGL.
It looks like, with exact same env, the capability
glInitFramebufferObjectARB
Do you think it's a regression?
Do you think there is a wrong use on my script?
How can i help you to find the problem?
With 3.1.5
With 3.1.6
The text was updated successfully, but these errors were encountered: