#233 GL_KHR_debug: GLDEBUGPROC incorrectly defined

1.11.0
closed
Nigel Stewart
None
3
2014-08-12
2013-12-07
Anonymous
No

Under GL_KHR_debug the definition for GLDEBUGPROC is incorrect. The last parameter should be const void* userParam, not GLvoid* userParam.

http://www.opengl.org/registry/specs/KHR/debug.txt

Discussion


  • Anonymous
    2013-12-07

    This also affects GLDEBUGPROCARB. GLDEBUGPROCAMD is the only version which should take GLvoid* for userParam.

     
  • Nigel Stewart
    Nigel Stewart
    2013-12-09

    Indeed, from http://www.opengl.org/registry/api/GL/glext.h

    typedef void (APIENTRY GLDEBUGPROCARB)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar message,const void *userParam);

    typedef void (APIENTRY GLDEBUGPROCAMD)(GLuint id,GLenum category,GLenum severity,GLsizei length,const GLchar message,void *userParam);

    http://www.opengl.org/registry/api/GL/glcorearb.h

    typedef void (APIENTRY GLDEBUGPROC)(GLenum source,GLenum type,GLuint id,GLenum severity,GLsizei length,const GLchar message,const void *userParam);

     


Anonymous


Cancel   Add attachments