From: José Fonseca Date: Sat, 14 Apr 2012 16:28:40 +0000 (+0100) Subject: Don't change behavior of glproc code via RETRACE define. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=b2f9ad13e08391e2f2c3a83e4225f1ec19eb1c01;p=apitrace Don't change behavior of glproc code via RETRACE define. So that we don't have to build the same code twice. --- diff --git a/glproc_gl.cpp b/glproc_gl.cpp index d032e8b..27b3ef7 100644 --- a/glproc_gl.cpp +++ b/glproc_gl.cpp @@ -117,13 +117,11 @@ void * __libgl_sym(const char *symbol) result = dlsym(__libGlHandle, symbol); -#ifndef RETRACE - if (result == dlsym(RTLD_SELF, symbol)) { + if (resullt && result == dlsym(RTLD_SELF, symbol)) { os::log("apitrace: error: symbol lookup recursion\n"); os::abort(); return NULL; } -#endif return result; }