summaryrefslogtreecommitdiffstats
path: root/src/mesa/glapi/glX_XML.py
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2005-01-28 18:20:43 +0000
committerIan Romanick <[email protected]>2005-01-28 18:20:43 +0000
commit54584df8cc0e663d931de0576a967ffec7fd3ce4 (patch)
tree59bbe0dd9c8454347379dbbfe9579e96d332080e /src/mesa/glapi/glX_XML.py
parent20b8d9c1b927f30390093750af0f4008adbfa5cf (diff)
Properly annotate variable-length output parameters. Make sure that the
client-side code doesn't try to calculate the size of the output parameters. The server will tell the client how big it is.
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 6eb2f553f96..1db12f5c940 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.