summaryrefslogtreecommitdiff
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.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/glapi/glX_XML.py b/src/mesa/glapi/glX_XML.py
index 6eb2f553f9..1db12f5c94 100644
--- a/src/mesa/glapi/glX_XML.py
+++ b/src/mesa/glapi/glX_XML.py
@@ -452,6 +452,14 @@ class glXFunction(gl_XML.glFunction):
return None
+ def output_parameter(self):
+ for param in self.fn_parameters:
+ if param.is_output:
+ return param
+
+ return None
+
+
def offset_of_first_parameter(self):
"""Get the offset of the first parameter in the command.