Skip to content

Commit

Permalink
GL: Load libGLX
Browse files Browse the repository at this point in the history
Closes #190
  • Loading branch information
nowrep committed Dec 2, 2023
1 parent 39db320 commit df7c3f0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/glinject.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ static bool gl_init_funcs(bool glx)
data.glx = glx;

if (glx) {
void *handle = NULL;
void *handle = dlopen("libGLX.so.0", RTLD_LAZY);
if (!handle) {
hlog("Failed to open libGLX.so.0");
return false;
}
GETGLXADDR(GetProcAddress);
GETGLXADDR(GetProcAddressARB);
GETGLXPROCADDR(DestroyContext);
Expand Down

0 comments on commit df7c3f0

Please sign in to comment.