summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--glwrangle.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/glwrangle.h b/glwrangle.h
index 6eb3a50..d423f47 100644
--- a/glwrangle.h
+++ b/glwrangle.h
@@ -64,8 +64,9 @@ debug_cb(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length,
static void*
dlsym_proc(const char *procname)
{
- HOOK_DLSYM(dlsym);
- return _dlsym(RTLD_NEXT, procname);
+ void *ptr = NULL;
+ hook_function(&ptr, procname, false, (const char*[]){ GL_LIBS, NULL });
+ return ptr;
}
static void