summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Vetoniemi <mailroxas@gmail.com>2017-01-26 08:53:06 +0200
committerJari Vetoniemi <mailroxas@gmail.com>2017-01-26 08:53:06 +0200
commit8bb897857a42a6c9af55704cbe1a185c9aaab929 (patch)
tree01818d3f02ded7634b149d933a98effb3a29367b
parent571054ee800c1fa7cf107a2dbbfef95019089211 (diff)
Make dlsym_proc use hook_function
-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