From 2636e853f60cf6944d04c9eb4bf25e8ef83c1cb3 Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 22 Jun 2005 17:11:20 +0000 Subject: Mark GenQueriesARB at 'always_array="true"'. This eliminates the need to special-case the handling of that function in glX_proto_send.py. --- src/glx/x11/indirect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/glx/x11/indirect.c') diff --git a/src/glx/x11/indirect.c b/src/glx/x11/indirect.c index 83a2d563ab..42e961e5f3 100644 --- a/src/glx/x11/indirect.c +++ b/src/glx/x11/indirect.c @@ -7624,12 +7624,12 @@ __indirect_glGenQueriesARB(GLsizei n, GLuint * ids) XCBConnection *c = XCBConnectionOfDisplay(dpy); (void) __glXFlushRenderBuffer(gc, gc->pc); XCBGlxGenQueriesARBRep *reply = XCBGlxGenQueriesARBReply(c, XCBGlxGenQueriesARB(c, gc->currentContextTag, n), NULL); - (void)memcpy(ids, XCBGlxGenQueriesARBData(reply), XCBGlxGenQueriesARBDataLength(reply) * sizeof(GLuint)); + ids = (GLuint *)XCBGlxGenQueriesARBData(reply); free(reply); #else GLubyte const * pc = __glXSetupSingleRequest(gc, X_GLsop_GenQueriesARB, cmdlen); (void) memcpy((void *)(pc + 0), (void *)(&n), 4); - (void) __glXReadReply(dpy, 4, ids, GL_FALSE); + (void) __glXReadReply(dpy, 4, ids, GL_TRUE); UnlockDisplay(dpy); SyncHandle(); #endif /* USE_XCB */ } -- cgit v1.2.3