summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-06-22 17:11:20 +0000
committerIan Romanick <idr@us.ibm.com>2005-06-22 17:11:20 +0000
commit2636e853f60cf6944d04c9eb4bf25e8ef83c1cb3 (patch)
tree889a3e42746f7ec4111fe3196d2ebf7252da6081 /src/mesa/glapi
parent814e5360b0f556e39f1f55ea4173de412df38f7d (diff)
Mark GenQueriesARB at 'always_array="true"'. This eliminates the need
to special-case the handling of that function in glX_proto_send.py.
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glX_proto_send.py2
-rw-r--r--src/mesa/glapi/gl_API.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py
index 501b514b55..6a4d1dfc0d 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() 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'
diff --git a/src/mesa/glapi/gl_API.xml b/src/mesa/glapi/gl_API.xml
index 49eb6d17e2..2085f0d44a 100644
--- a/src/mesa/glapi/gl_API.xml
+++ b/src/mesa/glapi/gl_API.xml
@@ -6721,7 +6721,7 @@
<function name="GenQueriesARB" offset="700">
<param name="n" type="GLsizei" counter="true"/>
<param name="ids" type="GLuint *" output="true" count="n"/>
- <glx sop="162"/>
+ <glx sop="162" always_array="true"/>
</function>
<function name="DeleteQueriesARB" offset="701">