check for USE_MGL_NAMESPACE
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 3 Nov 2006 23:28:36 +0000 (23:28 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 3 Nov 2006 23:28:36 +0000 (23:28 +0000)
src/mesa/glapi/gl_x86-64_asm.py
src/mesa/glapi/gl_x86_asm.py
src/mesa/glapi/glthread.h

index 2a375d1ae94b90a99001ea619204dd65e8dd360b..1e1279b8f1edd2a847fc5dfbf263d6b51708804f 100644 (file)
@@ -141,6 +141,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
                print '#  define THREADS'
                print '#endif'
                print ''
+               print '#ifdef USE_MGL_NAMESPACE'
+               print '#define _glapi_Dispatch _mglapi_Dispatch'
+               print '#endif'
+               print ''
                print '\t.text'
                print ''
                print '#ifdef GLX_USE_TLS'
index 977e0329cc56ea3b5b0c99aab92b3023a9466dc4..5ae3e2608e906cdf7058df8a8daf4b8f28e0259c 100644 (file)
@@ -79,6 +79,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
                print '#  define THREADS'
                print '#endif'
                print ''
+               print '#ifdef USE_MGL_NAMESPACE'
+               print '#define _glapi_Dispatch _mglapi_Dispatch'
+               print '#endif'
+               print ''
                print '#ifdef GLX_USE_TLS'
                print ''
                print '#  define GL_STUB(fn,off,fn_alt)\t\t\t\\'
index 0958cd1b32c4a790b98f3d5dd18f91a49ce81a71..a61086d0dc68ed0e06dedeef8149524916607639 100644 (file)
@@ -1,6 +1,6 @@
 /*
  * Mesa 3-D graphics library
- * Version:  6.5.1
+ * Version:  6.5.2
  *
  * Copyright (C) 1999-2006  Brian Paul   All Rights Reserved.
  *
 #define GLTHREAD_H
 
 
+#if defined(USE_MGL_NAMESPACE)
+#define _glapi_Dispatch _mglapi_Dispatch
+#endif
+
+
+
 #if (defined(PTHREADS) || defined(SOLARIS_THREADS) ||\
      defined(WIN32_THREADS) || defined(USE_XTHREADS) || defined(BEOS_THREADS)) \
     && !defined(THREADS)