Timo Aaltonen pushed to branch upstream-unstable at X Strike Force / lib / libepoxy
Commits:
-
ad723a7a
by Emmanuele Bassi at 2021-05-21T16:56:51+01:00
-
7975061f
by John Bates at 2021-07-02T11:57:17-07:00
-
ecfa8e0f
by Emmanuele Bassi at 2021-07-12T16:53:46+01:00
2 changed files:
Changes:
1 |
-project('libepoxy', 'c', version: '1.5.8',
|
|
1 |
+project('libepoxy', 'c', version: '1.5.9',
|
|
2 | 2 |
default_options: [
|
3 | 3 |
'buildtype=debugoptimized',
|
4 | 4 |
'c_std=gnu99',
|
... | ... | @@ -670,13 +670,23 @@ epoxy_load_gl(void) |
670 | 670 |
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, true, true);
|
671 | 671 |
#else
|
672 | 672 |
|
673 |
+ // Prefer GLX_LIB over OPENGL_LIB to maintain existing behavior.
|
|
674 |
+ // Using the inverse ordering OPENGL_LIB -> GLX_LIB, causes issues such as:
|
|
675 |
+ // https://github.com/anholt/libepoxy/issues/240 (apitrace missing calls)
|
|
676 |
+ // https://github.com/anholt/libepoxy/issues/252 (Xorg boot crash)
|
|
677 |
+ get_dlopen_handle(&api.glx_handle, GLX_LIB, false, true);
|
|
678 |
+ api.gl_handle = api.glx_handle;
|
|
679 |
+ |
|
673 | 680 |
#if defined(OPENGL_LIB)
|
674 | 681 |
if (!api.gl_handle)
|
675 |
- get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
|
|
682 |
+ get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
|
|
676 | 683 |
#endif
|
677 | 684 |
|
678 |
- get_dlopen_handle(&api.glx_handle, GLX_LIB, true, true);
|
|
679 |
- api.gl_handle = api.glx_handle;
|
|
685 |
+ if (!api.gl_handle) {
|
|
686 |
+ fprintf(stderr, "Couldn't open %s or %s\n", GLX_LIB, OPENGL_LIB);
|
|
687 |
+ abort();
|
|
688 |
+ }
|
|
689 |
+ |
|
680 | 690 |
#endif
|
681 | 691 |
}
|
682 | 692 |
|