summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_proto_send.py
diff options
context:
space:
mode:
authorJeremy Kolb <jkolb@freedesktop.org>2005-06-22 02:36:23 +0000
committerJeremy Kolb <jkolb@freedesktop.org>2005-06-22 02:36:23 +0000
commit814e5360b0f556e39f1f55ea4173de412df38f7d (patch)
tree4f5d55d853aa57ddce5690e97d3f6a26993b9b70 /src/mesa/glapi/glX_proto_send.py
parent66a5548fbbf4c04a74b0bbc451718a8fc95502d9 (diff)
Fixed a bug where GenQueriesARB was generating the wrong code for XCB and wouldn't compile. Not sure how that slipped through before but it should work now.
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 6a4d1dfc0d..501b514b55 100644
--- a/src/mesa/glapi/glX_proto_send.py
+++ b/src/mesa/glapi/glX_proto_send.py
@@ -576,7 +576,7 @@ generic_%u_byte( GLint rop, const void * ptr )
if output and f.reply_always_array:
print ' %s = (%s)%sData(reply);' % (output.name, output.type_string(), xcb_name)
elif output and not f.reply_always_array:
- if not output.is_image():
+ if not output.is_image() and not f.name == "GenQueriesARB":
print ' if (%sDataLength(reply) == 0)' % (xcb_name)
print ' (void)memcpy(%s, &reply->datum, sizeof(reply->datum));' % (output.name)
print ' else'