#define _glapi_Dispatch _mglapi_Dispatch when USE_MGL_NAMESPACE is set.
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 3 Nov 2006 23:43:14 +0000 (23:43 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 3 Nov 2006 23:43:14 +0000 (23:43 +0000)
src/mesa/glapi/gl_x86-64_asm.py
src/mesa/glapi/gl_x86_asm.py
src/mesa/x86-64/glapi_x86-64.S
src/mesa/x86/glapi_x86.S

index 1e1279b8f1edd2a847fc5dfbf263d6b51708804f..fa45406f47bc0bb54f7a17fd624ed9b906c77d2d 100644 (file)
@@ -133,6 +133,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
                print ''
                print '# if defined(USE_MGL_NAMESPACE)'
                print '#  define GL_PREFIX(n) GLNAME(CONCAT(mgl,n))'
+               print '#  define _glapi_Dispatch _mglapi_Dispatch'
                print '# else'
                print '#  define GL_PREFIX(n) GLNAME(CONCAT(gl,n))'
                print '# endif'
@@ -141,10 +142,6 @@ 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 5ae3e2608e906cdf7058df8a8daf4b8f28e0259c..650331a0c5ab9fa88ea789ed44358c237b737c2e 100644 (file)
@@ -62,6 +62,7 @@ class PrintGenericStubs(gl_XML.gl_print_base):
                print '#else'
                print '# if defined(USE_MGL_NAMESPACE)'
                print '#  define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n))'
+               print '#  define _glapi_Dispatch _mglapi_Dispatch'
                print '# else'
                print '#  define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n))'
                print '# endif'
@@ -79,10 +80,6 @@ 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 1d958291348944eb8ce3bdd57555e40b009013d8..d8ef5eae0951e89dbd03442bf13a58ff1c18f108 100644 (file)
@@ -40,6 +40,7 @@
 
 # if defined(USE_MGL_NAMESPACE)
 #  define GL_PREFIX(n) GLNAME(CONCAT(mgl,n))
+#  define _glapi_Dispatch _mglapi_Dispatch
 # else
 #  define GL_PREFIX(n) GLNAME(CONCAT(gl,n))
 # endif
index 3221dbce181baadd970642e85218895ddd29f6d4..2c01b38aeb78932d01dbb2225059c5f98f037eda 100644 (file)
@@ -38,6 +38,7 @@
 #else
 # if defined(USE_MGL_NAMESPACE)
 #  define GL_PREFIX(n,n2) GLNAME(CONCAT(mgl,n))
+#  define _glapi_Dispatch _mglapi_Dispatch
 # else
 #  define GL_PREFIX(n,n2) GLNAME(CONCAT(gl,n))
 # endif