Skip to content
Snippets Groups Projects
Commit c5c3bff6 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

vendor source 1.5.9

parent b41c5dec
No related branches found
No related tags found
No related merge requests found
project('libepoxy', 'c', version: '1.5.7',
project('libepoxy', 'c', version: '1.5.9',
default_options: [
'buildtype=debugoptimized',
'c_std=gnu99',
......
......@@ -670,17 +670,23 @@ epoxy_load_gl(void)
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, true, true);
#else
// Prefer GLX_LIB over OPENGL_LIB to maintain existing behavior.
// Using the inverse ordering OPENGL_LIB -> GLX_LIB, causes issues such as:
// https://github.com/anholt/libepoxy/issues/240 (apitrace missing calls)
// https://github.com/anholt/libepoxy/issues/252 (Xorg boot crash)
get_dlopen_handle(&api.glx_handle, GLX_LIB, false, true);
api.gl_handle = api.glx_handle;
#if defined(OPENGL_LIB)
if (!api.gl_handle)
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
#endif
if (!api.gl_handle) {
get_dlopen_handle(&api.gl_handle, GLX_LIB, true, true);
#if PLATFORM_HAS_GLX
if (!api.glx_handle)
api.glx_handle = api.gl_handle;
#endif
fprintf(stderr, "Couldn't open %s or %s\n", GLX_LIB, OPENGL_LIB);
abort();
}
#endif
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment