summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/gl_XML.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/glapi/gl_XML.py')
-rw-r--r--src/mesa/glapi/gl_XML.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/mesa/glapi/gl_XML.py b/src/mesa/glapi/gl_XML.py
index ee3013c855f..651bd7369b3 100644
--- a/src/mesa/glapi/gl_XML.py
+++ b/src/mesa/glapi/gl_XML.py
@@ -276,12 +276,15 @@ def real_category_name(c):
return c
-def create_parameter_string(parameters):
+def create_parameter_string(parameters, include_names):
"""Create a parameter string from a list of gl_parameters."""
list = []
for p in parameters:
- list.append( p.string() )
+ if include_names:
+ list.append( p.string() )
+ else:
+ list.append( p.type_string() )
if len(list) == 0: list = ["void"]
@@ -658,7 +661,7 @@ class gl_function( gl_item ):
if element.children:
self.initialized = 1
- self.parameter_strings[name] = create_parameter_string(parameters)
+ self.parameter_strings[name] = create_parameter_string(parameters, 1)
else:
self.parameter_strings[name] = None
@@ -680,7 +683,7 @@ class gl_function( gl_item ):
if s:
return s
- return create_parameter_string( self.parameters )
+ return create_parameter_string( self.parameters, 1 )
class gl_item_factory: