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

Platform detection #103

Merged
merged 4 commits into from Feb 6, 2017
Merged

Platform detection #103

merged 4 commits into from Feb 6, 2017

Conversation

ebassi
Copy link
Collaborator

@ebassi ebassi commented Feb 3, 2017

Fixes #73.

When checking whether GLX or EGL are available on the system, we don't
want to use the internal API that forces an exit() on missing libraries
and symbols — as that would defeat the point.

Instead, we should have safe functions to call internally that simply
return a NULL pointer, so we can bail out ourselves in a controlled
fashion.
Libraries and applications that depend on Epoxy currently have no way to
safely degrade functionality if they are used on a platform without GLX
support; the only way to achieve that is to perform a symbol check
themselves, by essentially copying what Epoxy already does.

By exposing `epoxy_has_glx()`, those libraries and applications now have
the chance of querying Epoxy itself and gracefully handle failure.
Similar to `epoxy_has_glx()`, but for the EGL windowing system API.
@ebassi ebassi merged commit 075172f into anholt:master Feb 6, 2017
@ebassi ebassi deleted the platform-detection branch February 6, 2017 16:06
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

1 participant