# 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)
+
if function.name in ("glXGetProcAddress", "glXGetProcAddressARB"):
print ' %s = __unwrap_proc_addr(procName, %s);' % (instance, instance)
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"'