glx: fix glGetTexLevelParameteriv for indirect rendering
authorStefan Brüns <Stefan.Bruens@rwth-aachen.de>
Tue, 5 Feb 2013 16:29:20 +0000 (17:29 +0100)
committerBrian Paul <brianp@vmware.com>
Tue, 19 Feb 2013 14:19:19 +0000 (07:19 -0700)
commit5876a5dbc0a6ec9ae7f44b5e483d38ae0d24a259
tree1136023c05c54a8de59a82acc5731aa0c1533f91
parent63c30d7e4fd9676c72d5d94640e1e136bd9dd09f
glx: fix glGetTexLevelParameteriv for indirect rendering

A single element in a GLX reply is contained in the header itself.
The number of elements is denoted in the "n" field of the reply.
If "n" is 1, the length of additional data is 0.
The XXX_data_length() function of xcb does not return the length of
the (optional, n>1) data but the number of elements.

Fixes http://bugs.freedesktop.org/show_bug.cgi?id=59876

Note: This is a candidate for the stable branches.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Signed-off-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mapi/glapi/gen/glX_proto_send.py