]> git.cworth.org Git - apitrace/blobdiff - glproc.py
Advertise GREMEDY extensions through glStringi too.
[apitrace] / glproc.py
index b036b359b95e33f8aee1134ee0a7249fa66da4fe..16b5d180b9baccc4bf189187c7cf3cd6895cedf7 100644 (file)
--- a/glproc.py
+++ b/glproc.py
@@ -419,14 +419,13 @@ class GlDispatcher(Dispatcher):
         print '#  else'
         print '#    define __getPrivateProcAddress(name) glXGetProcAddressARB((const GLubyte *)(name))'
         print '#  endif'
-        print '#  define __abort() OS::Abort()'
         print '#else /* !RETRACE */'
         print '#  ifdef _WIN32'
         print '#    define __getPrivateProcAddress(name) __wglGetProcAddress(name)'
         print '     static inline PROC __stdcall __wglGetProcAddress(const char * lpszProc);'
         print '#  else'
-        print '#    define __getPublicProcAddress(name) __dlsym(name)'
-        print '     static void * __dlsym(const char *symbol);'
+        print '#    define __getPublicProcAddress(name) __libgl_sym(name)'
+        print '     void * __libgl_sym(const char *symbol);'
         print '#    ifdef __APPLE__'
         print '#      define __getPrivateProcAddress(name) __getPublicProcAddress(name)'
         print '#    else'
@@ -434,12 +433,11 @@ class GlDispatcher(Dispatcher):
         print '       static inline __GLXextFuncPtr __glXGetProcAddressARB(const GLubyte * procName);'
         print '#    endif'
         print '#  endif'
-        print '#  define __abort() Trace::Abort()'
         print '#endif /* !RETRACE */'
         print
         
     def is_public_function(self, function):
-        return function.name in public_symbols
+        return function.name in public_symbols or function.name.startswith('CGL')
 
 
 if __name__ == '__main__':