]> git.cworth.org Git - apitrace/blobdiff - glproc_gl.cpp
Don't change behavior of glproc code via RETRACE define.
[apitrace] / 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;
 }