summaryrefslogtreecommitdiff
path: root/src/mesa/glapi/glX_proto_send.py
diff options
context:
space:
mode:
authorIan Romanick <idr@us.ibm.com>2005-03-17 01:48:11 +0000
committerIan Romanick <idr@us.ibm.com>2005-03-17 01:48:11 +0000
commit3f35fbbf668dab4c1a572f77a0912f4b7c8d857c (patch)
treea6332fc01602a1406263ad14fba0df31dcd3e3e4 /src/mesa/glapi/glX_proto_send.py
parent9eae0b9f19f3e71dec6d6440db69dd5d140228de (diff)
Fix the handling of zero-sized output parameters (i.e., those with type
'GLvoid *'). This fixes the GLX protocol for glGetProgramStringARB. This fixes bugzilla #2747. Remove the 'ignore="true"' from glVertexAttrib4bvARB. This fixes bugzilla #2746.
Diffstat (limited to 'src/mesa/glapi/glX_proto_send.py')
-rw-r--r--src/mesa/glapi/glX_proto_send.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mesa/glapi/glX_proto_send.py b/src/mesa/glapi/glX_proto_send.py
index a89a5f67ea..7c31b873e2 100644
--- a/src/mesa/glapi/glX_proto_send.py
+++ b/src/mesa/glapi/glX_proto_send.py
@@ -449,7 +449,11 @@ generic_%u_byte( GLint rop, const void * ptr )
print " __glXReadPixelReply(dpy, gc, %u, %s, %s, %s, %s, %s, %s, GL_FALSE);" % (dim, w, h, d, f.image.img_format, f.image.img_type, f.image.name)
else:
if f.output != None:
- output_size = f.output.p_type.size
+ if f.output.p_type.size == 0:
+ output_size = 1
+ else:
+ output_size = f.output.p_type.size
+
output_str = f.output.name
else:
output_size = 0