From 8bb897857a42a6c9af55704cbe1a185c9aaab929 Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Thu, 26 Jan 2017 08:53:06 +0200 Subject: Make dlsym_proc use hook_function --- glwrangle.h | 5 +++-- 1 file 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 -- cgit v1.2.3-70-g09d2