Skip to content

Commit

Permalink
Fix libGL name
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgallet committed Feb 1, 2024
1 parent 8c08785 commit a3246fe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/external/imgui/imgui_impl_opengl3_loader.h
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,10 @@ static int open_libgl(void)
{
// While most systems use libGL.so.1, NetBSD seems to use that libGL.so.3. See https://github.com/ocornut/imgui/issues/6983
libgl = dlopen("libGL.so", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
libgl = dlopen("libGL.so.1", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
libgl = dlopen("libGL.so.3", RTLD_LAZY | RTLD_LOCAL);
if (!libgl)
return GL3W_ERROR_LIBRARY_OPEN;
*(void **)(&glx_get_proc_address) = dlsym(libgl, "glXGetProcAddressARB");
Expand Down

0 comments on commit a3246fe

Please sign in to comment.