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

dispatch: fix loading of GL without GLX library #232

Closed
wants to merge 1 commit into from

Conversation

pks-t
Copy link

@pks-t pks-t commented Oct 24, 2020

When loading the GL library in epoxy_load_gl, we in turn try to load
OPENGL_LIB and GLX_LIB. But notably, we'll also try to load GLX_LIB even
if loading OPENGL_LIB succeeded. As this load will abort in case the
library wasn't found, the end result is that systems without GLX_LIB
will always fail epoxy_load_gl.

Fix the issue by only trying to load GLX_LIB in case OPENGL_LIB wasn't
found.

When loading the GL library in `epoxy_load_gl`, we in turn try to load
OPENGL_LIB and GLX_LIB. But notably, we'll also try to load GLX_LIB even
if loading OPENGL_LIB succeeded. As this load will abort in case the
library wasn't found, the end result is that systems without GLX_LIB
will always fail `epoxy_load_gl`.

Fix the issue by only trying to load GLX_LIB in case OPENGL_LIB wasn't
found.
@kev009
Copy link

kev009 commented Jun 28, 2021

@anholt can you comment if this is a viable fix? Several distro maintainers are unsure how to proceed with glvnd so we need some expertise.

@ebassi
Copy link
Collaborator

ebassi commented Jun 28, 2021

See #257 and the discussion in #252.

@ebassi
Copy link
Collaborator

ebassi commented Jul 12, 2021

This should have been fixed in #257.

@ebassi ebassi closed this Jul 12, 2021
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

3 participants