summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_proto_send.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-01-28 18:20:43 +0000
committerIan Romanick <idr@us.ibm.com>2005-01-28 18:20:43 +0000
commit54584df8cc0e663d931de0576a967ffec7fd3ce4 (patch)
tree59bbe0dd9c8454347379dbbfe9579e96d332080e /src/mesa/glapi/glX_proto_send.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_proto_send.py')
-rw-r--r--src/mesa/glapi/glX_proto_send.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py
index 2090555caf..7216b69972 100644
--- a/src/mesa/glapi/glX_proto_send.py
+++ b/src/mesa/glapi/glX_proto_send.py
@@ -339,7 +339,7 @@ generic_%u_byte( GLint rop, const void * ptr )
if f.fn_return_type != 'void':
print ' %s retval = (%s) 0;' % (f.fn_return_type, f.fn_return_type)
- if f.count_parameters != None:
+ if f.count_parameters and not f.output_parameter():
print ' const GLuint compsize = __gl%s_size(%s);' % (f.name, f.count_parameters)
elif f.image:
[dim, w, h, d, junk] = f.dimensions()