moderngl / glcontext

connects moderngl to your window or create headless contexts :electric_plug:
https://moderngl.readthedocs.io/
MIT License
38 stars 13 forks source link

Need a way to pass in gl library #6

Closed einarf closed 4 years ago

einarf commented 4 years ago

This is the case on linux at least. libGL.so vs libGL.1.* are the common it seems.

Maybe we should try those two alternatives if no glversion was passed in?

szabolcsdombi commented 4 years ago

https://github.com/moderngl/glcontext/blob/d53fdd38e6e2d267a3be98cdf637317d8033cbee/glcontext/x11.cpp#L82-L92

the internal implementation is flexible

the mini wrappers maybe omit using it, but it could be added, it was not yet decided how users should use this feature.

einarf commented 4 years ago

On all my linux boxes by default the available lib is libGL.so.1, not libGL.so. I see applications looking for both versions. I'm not sure what the correct default it. We probably want context creation on linux to be as painless as possible.

Do you have any insight about this?

einarf commented 4 years ago

For passing extra parameters there is work on moderngl side as well. We don't do anything there if a backend is passed in for example. Generally things are working pretty well as far as I can see (I have fixed most things already). It's mainly this remaining glue that is left for 5.6 + testing.

einarf commented 4 years ago

Fixed