summaryrefslogtreecommitdiff
path: root/glproc_gl.cpp
diff options
context:
space:
mode:
authorJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-01 21:37:21 +0000
committerJosé Fonseca <jose.r.fonseca@gmail.com>2011-12-01 21:37:21 +0000
commit44296d26d3200c2114cf897479580b6c9d238b25 (patch)
tree9ac34b235218d858028bb4272682fff0c5bd1c51 /glproc_gl.cpp
parent06628e7a907254d529a2fb50efdbb07e450e1a77 (diff)
Fix glretrace on MacOSX.
Diffstat (limited to 'glproc_gl.cpp')
-rw-r--r--glproc_gl.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/glproc_gl.cpp b/glproc_gl.cpp
index 18314dcb..d9fb469e 100644
--- a/glproc_gl.cpp
+++ b/glproc_gl.cpp
@@ -119,11 +119,13 @@ void * __libgl_sym(const char *symbol)
result = dlsym(__libGlHandle, symbol);
+#ifndef RETRACE
if (result == dlsym(RTLD_SELF, symbol)) {
os::log("apitrace: error: symbol lookup recursion\n");
os::abort();
return NULL;
}
+#endif
return result;
}