Mark GenQueriesARB at 'always_array="true"'. This eliminates the need

to special-case the handling of that function in glX_proto_send.py.
This commit is contained in:
Ian Romanick
2005-06-22 17:11:20 +00:00
parent 814e5360b0
commit 2636e853f6
3 changed files with 4 additions and 4 deletions

View File

@@ -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() and not f.name == "GenQueriesARB":
if not output.is_image():
print ' if (%sDataLength(reply) == 0)' % (xcb_name)
print ' (void)memcpy(%s, &reply->datum, sizeof(reply->datum));' % (output.name)
print ' else'