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.
This commit is contained in:
@@ -7624,9 +7624,6 @@ __indirect_glGenQueriesARB(GLsizei n, GLuint * ids)
|
|||||||
XCBConnection *c = XCBConnectionOfDisplay(dpy);
|
XCBConnection *c = XCBConnectionOfDisplay(dpy);
|
||||||
(void) __glXFlushRenderBuffer(gc, gc->pc);
|
(void) __glXFlushRenderBuffer(gc, gc->pc);
|
||||||
XCBGlxGenQueriesARBRep *reply = XCBGlxGenQueriesARBReply(c, XCBGlxGenQueriesARB(c, gc->currentContextTag, n), NULL);
|
XCBGlxGenQueriesARBRep *reply = XCBGlxGenQueriesARBReply(c, XCBGlxGenQueriesARB(c, gc->currentContextTag, n), NULL);
|
||||||
if (XCBGlxGenQueriesARBDataLength(reply) == 0)
|
|
||||||
(void)memcpy(ids, &reply->datum, sizeof(reply->datum));
|
|
||||||
else
|
|
||||||
(void)memcpy(ids, XCBGlxGenQueriesARBData(reply), XCBGlxGenQueriesARBDataLength(reply) * sizeof(GLuint));
|
(void)memcpy(ids, XCBGlxGenQueriesARBData(reply), XCBGlxGenQueriesARBDataLength(reply) * sizeof(GLuint));
|
||||||
free(reply);
|
free(reply);
|
||||||
#else
|
#else
|
||||||
|
@@ -576,7 +576,7 @@ generic_%u_byte( GLint rop, const void * ptr )
|
|||||||
if output and f.reply_always_array:
|
if output and f.reply_always_array:
|
||||||
print ' %s = (%s)%sData(reply);' % (output.name, output.type_string(), xcb_name)
|
print ' %s = (%s)%sData(reply);' % (output.name, output.type_string(), xcb_name)
|
||||||
elif output and not f.reply_always_array:
|
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 ' if (%sDataLength(reply) == 0)' % (xcb_name)
|
||||||
print ' (void)memcpy(%s, &reply->datum, sizeof(reply->datum));' % (output.name)
|
print ' (void)memcpy(%s, &reply->datum, sizeof(reply->datum));' % (output.name)
|
||||||
print ' else'
|
print ' else'
|
||||||
|
Reference in New Issue
Block a user