Merge pull request #238 from anholt/pull-229-alt

Fix some bugs in loading OpenGL/GLX/EGL libraries
macos/v1.5.9
Emmanuele Bassi 3 years ago committed by GitHub
commit de08cf3479
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/dispatch_common.c

@ -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
}

Loading…
Cancel
Save