diff options
author | Ian Romanick <[email protected]> | 2005-01-28 18:20:43 +0000 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2005-01-28 18:20:43 +0000 |
commit | 54584df8cc0e663d931de0576a967ffec7fd3ce4 (patch) | |
tree | 59bbe0dd9c8454347379dbbfe9579e96d332080e /src/mesa/glapi/glX_XML.py | |
parent | 20b8d9c1b927f30390093750af0f4008adbfa5cf (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.py | 8 |
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. |