summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glX_XML.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/glapi/glX_XML.py')
-rw-r--r--src/mesa/glapi/glX_XML.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py
index 3f6f841d784..98be9965704 100644
--- a/src/mesa/glapi/glX_XML.py
+++ b/src/mesa/glapi/glX_XML.py
@@ -416,10 +416,9 @@ class glXFunction(gl_XML.glFunction):
def variable_length_parameter(self):
- for param in self.fn_parameters:
- if param.is_variable_length_array():
- return param
-
+ if len(self.variable_length_parameters):
+ return self.variable_length_parameters[0]
+
return None