]> git.cworth.org Git - apitrace/commitdiff
Intercept dlopen("libGL.so") too
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Sun, 17 Apr 2011 21:30:26 +0000 (22:30 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Mon, 18 Apr 2011 08:35:54 +0000 (09:35 +0100)
glxtrace.py

index 050a0823ea3e363f98940aef69d894e50da6e411..a5317a4b74888f56c89142b29501a3c5832e3347 100644 (file)
@@ -114,7 +114,8 @@ void *dlopen(const char *filename, int flag)
         }
 
         // FIXME: handle absolute paths and other versions
-        if (strcmp(filename, "libGL.so.1") == 0) {
+        if (strcmp(filename, "libGL.so") == 0 ||
+            strcmp(filename, "libGL.so.1") == 0) {
             // Use the true libGL.so handle instead of RTLD_NEXT from now on
             libgl_handle = handle;