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
|
||||||
|
@@ -613,7 +613,7 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->PointParameterfEXT = __indirect_glPointParameterfEXT;
|
glAPI->PointParameterfEXT = __indirect_glPointParameterfEXT;
|
||||||
glAPI->PointParameterfvEXT = __indirect_glPointParameterfvEXT;
|
glAPI->PointParameterfvEXT = __indirect_glPointParameterfvEXT;
|
||||||
|
|
||||||
/* 145. GL_EXT_secondary_color */
|
/* 145. GL_EXT_secondary_color */
|
||||||
|
|
||||||
glAPI->SecondaryColor3usvEXT = __indirect_glSecondaryColor3usvEXT;
|
glAPI->SecondaryColor3usvEXT = __indirect_glSecondaryColor3usvEXT;
|
||||||
glAPI->SecondaryColorPointerEXT = __indirect_glSecondaryColorPointerEXT;
|
glAPI->SecondaryColorPointerEXT = __indirect_glSecondaryColorPointerEXT;
|
||||||
@@ -633,12 +633,12 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->SecondaryColor3uivEXT = __indirect_glSecondaryColor3uivEXT;
|
glAPI->SecondaryColor3uivEXT = __indirect_glSecondaryColor3uivEXT;
|
||||||
glAPI->SecondaryColor3usEXT = __indirect_glSecondaryColor3usEXT;
|
glAPI->SecondaryColor3usEXT = __indirect_glSecondaryColor3usEXT;
|
||||||
|
|
||||||
/* 148. GL_EXT_multi_draw_arrays */
|
/* 148. GL_EXT_multi_draw_arrays */
|
||||||
|
|
||||||
glAPI->MultiDrawArraysEXT = __indirect_glMultiDrawArraysEXT;
|
glAPI->MultiDrawArraysEXT = __indirect_glMultiDrawArraysEXT;
|
||||||
glAPI->MultiDrawElementsEXT = __indirect_glMultiDrawElementsEXT;
|
glAPI->MultiDrawElementsEXT = __indirect_glMultiDrawElementsEXT;
|
||||||
|
|
||||||
/* 149. GL_EXT_fog_coord */
|
/* 149. GL_EXT_fog_coord */
|
||||||
|
|
||||||
glAPI->FogCoordfEXT = __indirect_glFogCoordfEXT;
|
glAPI->FogCoordfEXT = __indirect_glFogCoordfEXT;
|
||||||
glAPI->FogCoordfvEXT = __indirect_glFogCoordfvEXT;
|
glAPI->FogCoordfvEXT = __indirect_glFogCoordfvEXT;
|
||||||
@@ -646,11 +646,11 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->FogCoorddvEXT = __indirect_glFogCoorddvEXT;
|
glAPI->FogCoorddvEXT = __indirect_glFogCoorddvEXT;
|
||||||
glAPI->FogCoordPointerEXT = __indirect_glFogCoordPointerEXT;
|
glAPI->FogCoordPointerEXT = __indirect_glFogCoordPointerEXT;
|
||||||
|
|
||||||
/* 173. GL_EXT_blend_func_separate */
|
/* 173. GL_EXT_blend_func_separate */
|
||||||
|
|
||||||
glAPI->BlendFuncSeparateEXT = __indirect_glBlendFuncSeparateEXT;
|
glAPI->BlendFuncSeparateEXT = __indirect_glBlendFuncSeparateEXT;
|
||||||
|
|
||||||
/* 197. GL_MESA_window_pos */
|
/* 197. GL_MESA_window_pos */
|
||||||
|
|
||||||
glAPI->WindowPos2dMESA = __indirect_glWindowPos2dMESA;
|
glAPI->WindowPos2dMESA = __indirect_glWindowPos2dMESA;
|
||||||
glAPI->WindowPos2dvMESA = __indirect_glWindowPos2dvMESA;
|
glAPI->WindowPos2dvMESA = __indirect_glWindowPos2dvMESA;
|
||||||
@@ -669,7 +669,7 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->WindowPos3sMESA = __indirect_glWindowPos3sMESA;
|
glAPI->WindowPos3sMESA = __indirect_glWindowPos3sMESA;
|
||||||
glAPI->WindowPos3svMESA = __indirect_glWindowPos3svMESA;
|
glAPI->WindowPos3svMESA = __indirect_glWindowPos3svMESA;
|
||||||
|
|
||||||
/* 233. GL_NV_vertex_program */
|
/* 233. GL_NV_vertex_program */
|
||||||
|
|
||||||
glAPI->VertexAttribs4svNV = __indirect_glVertexAttribs4svNV;
|
glAPI->VertexAttribs4svNV = __indirect_glVertexAttribs4svNV;
|
||||||
glAPI->VertexAttribs4ubvNV = __indirect_glVertexAttribs4ubvNV;
|
glAPI->VertexAttribs4ubvNV = __indirect_glVertexAttribs4ubvNV;
|
||||||
@@ -736,16 +736,16 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->VertexAttribs4dvNV = __indirect_glVertexAttribs4dvNV;
|
glAPI->VertexAttribs4dvNV = __indirect_glVertexAttribs4dvNV;
|
||||||
glAPI->VertexAttribs4fvNV = __indirect_glVertexAttribs4fvNV;
|
glAPI->VertexAttribs4fvNV = __indirect_glVertexAttribs4fvNV;
|
||||||
|
|
||||||
/* 262. GL_NV_point_sprite */
|
/* 262. GL_NV_point_sprite */
|
||||||
|
|
||||||
glAPI->PointParameteriNV = __indirect_glPointParameteriNV;
|
glAPI->PointParameteriNV = __indirect_glPointParameteriNV;
|
||||||
glAPI->PointParameterivNV = __indirect_glPointParameterivNV;
|
glAPI->PointParameterivNV = __indirect_glPointParameterivNV;
|
||||||
|
|
||||||
/* 268. GL_EXT_stencil_two_side */
|
/* 268. GL_EXT_stencil_two_side */
|
||||||
|
|
||||||
glAPI->ActiveStencilFaceEXT = __indirect_glActiveStencilFaceEXT;
|
glAPI->ActiveStencilFaceEXT = __indirect_glActiveStencilFaceEXT;
|
||||||
|
|
||||||
/* 282. GL_NV_fragment_program */
|
/* 282. GL_NV_fragment_program */
|
||||||
|
|
||||||
glAPI->ProgramNamedParameter4fNV = __indirect_glProgramNamedParameter4fNV;
|
glAPI->ProgramNamedParameter4fNV = __indirect_glProgramNamedParameter4fNV;
|
||||||
glAPI->ProgramNamedParameter4dNV = __indirect_glProgramNamedParameter4dNV;
|
glAPI->ProgramNamedParameter4dNV = __indirect_glProgramNamedParameter4dNV;
|
||||||
@@ -754,7 +754,7 @@ __GLapi * __glXNewIndirectAPI( void )
|
|||||||
glAPI->GetProgramNamedParameterfvNV = __indirect_glGetProgramNamedParameterfvNV;
|
glAPI->GetProgramNamedParameterfvNV = __indirect_glGetProgramNamedParameterfvNV;
|
||||||
glAPI->GetProgramNamedParameterdvNV = __indirect_glGetProgramNamedParameterdvNV;
|
glAPI->GetProgramNamedParameterdvNV = __indirect_glGetProgramNamedParameterdvNV;
|
||||||
|
|
||||||
/* 310. GL_EXT_framebuffer_object */
|
/* 310. GL_EXT_framebuffer_object */
|
||||||
|
|
||||||
glAPI->RenderbufferStorageEXT = __indirect_glRenderbufferStorageEXT;
|
glAPI->RenderbufferStorageEXT = __indirect_glRenderbufferStorageEXT;
|
||||||
glAPI->GetRenderbufferParameterivEXT = __indirect_glGetRenderbufferParameterivEXT;
|
glAPI->GetRenderbufferParameterivEXT = __indirect_glGetRenderbufferParameterivEXT;
|
||||||
|
@@ -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