#212 BaseVertex family: invalid type of "indices" parameter

1.10.0
closed
None
2
2013-08-23
2013-03-18
No

BaseVertex family draw functions has invalid type of "indices" parameter:

glDrawElementsBaseVertex
"void* indices" vs "const GLvoid *indices"

glDrawRangeElementsBaseVertex
"void* indices" vs "const GLvoid *indices"

glDrawElementsInstancedBaseVertex
"const void* indices" vs "const GLvoid *indices"

glMultiDrawElementsBaseVertex
"GLvoid**indices" vs "const GLvoid* const *indices"

Discussion

  • Nigel Stewart

    Nigel Stewart - 2013-03-19

    Confirming that.
    For my own reference:
    http://www.opengl.org/registry/specs/ARB/draw_elements_base_vertex.txt

    glext.h:
    GLAPI void APIENTRY glDrawElementsBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);

    GLAPI void APIENTRY glDrawRangeElementsBaseVertex (GLenum mode, GLuint start, GLuint end, GLsizei count, GLenum type, const GLvoid *indices, GLint basevertex);

    GLAPI void APIENTRY glDrawElementsInstancedBaseVertex (GLenum mode, GLsizei count, GLenum type, const GLvoid *indices, GLsizei instancecount, GLint basevertex);

    GLAPI void APIENTRY glDrawElementsInstancedBaseVertexBaseInstance (GLenum mode, GLsizei count, GLenum type, const void *indices, GLsizei instancecount, GLint basevertex, GLuint baseinstance);

     
  • Nigel Stewart

    Nigel Stewart - 2013-03-19
    • status: open --> accepted
    • milestone: 1.9.0 --> 1.9.1
    • priority: 9 --> 2
     
  • Nigel Stewart

    Nigel Stewart - 2013-07-12
    • status: accepted --> pending
    • assigned_to: Nigel Stewart
     
  • Nigel Stewart

    Nigel Stewart - 2013-07-22
    • status: pending --> closed
     
  • Nigel Stewart

    Nigel Stewart - 2013-07-22

    Fixed in GLEW 1.10.0
    Closing.
    Thanks for the report.