Make sure that functions added to gl_API.xml that do not have any GLX
[mesa.git] / src / mesa / glapi / gl_apitemp.py
index 8070c4fccf2e4f88a7d66a3812060fe124b043b6..533cc65becdfca3d1e530620b52ef30d9db8bbb4 100644 (file)
@@ -48,7 +48,7 @@ class PrintGlOffsets(gl_XML.FilterGLAPISpecBase):
                t_string = ""
                comma = ""
 
-               for p in f:
+               for p in f.parameterIterator():
                        cast = ""
 
                        if p.is_pointer:
@@ -129,11 +129,6 @@ class PrintGlOffsets(gl_XML.FilterGLAPISpecBase):
 #error RETURN_DISPATCH must be defined
 #endif
 
-#ifdef USE_MGL_NAMESPACE
-GLAPI void GLAPIENTRY mgl__unused413(void);  /* silence warning */
-#else
-GLAPI void GLAPIENTRY gl__unused413(void);  /* silence warning */
-#endif
 """
                return
 
@@ -153,7 +148,7 @@ GLAPI void GLAPIENTRY gl__unused413(void);  /* silence warning */
 #error TABLE_ENTRY must be defined
 #endif
 
-static void * DISPATCH_TABLE_NAME[] = {"""
+static _glapi_proc DISPATCH_TABLE_NAME[] = {"""
                keys = self.functions.keys()
                keys.sort()
                for k in keys:
@@ -180,7 +175,7 @@ static void * DISPATCH_TABLE_NAME[] = {"""
  * We list the functions which are not otherwise used.
  */
 #ifdef UNUSED_TABLE_NAME
-static const void * const UNUSED_TABLE_NAME[] = {"""
+static _glapi_proc UNUSED_TABLE_NAME[] = {"""
 
                keys = self.functions.keys()
                keys.sort()