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_proto_send.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_proto_send.py')
-rw-r--r-- | src/mesa/glapi/glX_proto_send.py | 2 |
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 2090555cafd..7216b699720 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() |