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.
This commit is contained in:
Ian Romanick
2005-03-17 01:48:11 +00:00
parent 9eae0b9f19
commit 3f35fbbf66
5 changed files with 22 additions and 3 deletions

View File

@@ -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