]> git.cworth.org Git - apitrace/commitdiff
Don't change behavior of glproc code via RETRACE define.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 14 Apr 2012 16:28:40 +0000 (17:28 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Sat, 14 Apr 2012 16:29:12 +0000 (17:29 +0100)
So that we don't have to build the same code twice.

glproc_gl.cpp

index d032e8b7a866be14d780d705be2ba60f24e97771..27b3ef7dc86706c45c1a9cd290726a73104a5cfd 100644 (file)
@@ -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;
 }