Skip to content

Commit

Permalink
Merge pull request #238 from anholt/pull-229-alt
Browse files Browse the repository at this point in the history
Fix some bugs in loading OpenGL/GLX/EGL libraries
  • Loading branch information
ebassi authored Jan 20, 2021
2 parents 7ec320d + 4994c48 commit de08cf3
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/dispatch_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,13 @@ epoxy_load_gl(void)
if (!api.gl_handle)
get_dlopen_handle(&api.gl_handle, OPENGL_LIB, false, true);
#endif

get_dlopen_handle(&api.glx_handle, GLX_LIB, true, true);
api.gl_handle = api.glx_handle;
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
}
#endif
}

Expand Down

0 comments on commit de08cf3

Please sign in to comment.