]> git.cworth.org Git - apitrace/blobdiff - glxtrace.py
Make windows build user friendlier.
[apitrace] / glxtrace.py
index c6e88cde1b73115a280390183a09772372e5f5b5..dfc24df0dcf57c30cc78e9ce603ce40c356f8b8f 100644 (file)
@@ -41,9 +41,6 @@ class GlxTracer(GlTracer):
         # The symbols visible in libGL.so can vary, so expose them all
         return True
 
-    def get_function_address(self, function):
-        return '__%s' % (function.name,)
-
     def wrap_ret(self, function, instance):
         GlTracer.wrap_ret(self, function, instance)
 
@@ -61,7 +58,11 @@ if __name__ == '__main__':
     print '#endif'
     print '#include <dlfcn.h>'
     print
-    print '#include "trace_write.hpp"'
+    print '#include "trace_writer.hpp"'
+    print
+    print '// To validate our prototypes'
+    print '#define GL_GLEXT_PROTOTYPES'
+    print '#define GLX_GLXEXT_PROTOTYPES'
     print
     print '#include "glproc.hpp"'
     print '#include "glsize.hpp"'