#43 const correctness with the OGL 4.4 specs

1.11.0
pending
nobody
None
5
2014-08-12
2013-10-08
Anonymous
No

There are a couple of wrong types at the function parameters.
I validated them being wrong by checking the OpenGL 4.4 Specs(registry -> gl.xml).

I attached an svn diff.

1 Attachments

Discussion

  • Polarina
    Polarina
    2014-01-08

    This patch is missing a fix to GLDEBUGPROC and GLDEBUGPROCARB. The userParam argument is a const void pointer.

     
  • Nigel Stewart
    Nigel Stewart
    2014-01-09

    Fixed GLDEBUGPROC and GLDEBUGPROCARB...

    $ egrep GLDEBUGPROC[^A] include/GL/
    include/GL/glew.h:typedef void (APIENTRY
    GLDEBUGPROC)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar message, const void userParam);
    include/GL/glew.h:typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKPROC) (GLDEBUGPROC callback, const void *userParam);

    $ grep GLDEBUGPROCARB include/GL/
    include/GL/glew.h:typedef void (APIENTRY
    GLDEBUGPROCARB)(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar message, const void userParam);
    include/GL/glew.h:typedef void (GLAPIENTRY * PFNGLDEBUGMESSAGECALLBACKARBPROC) (GLDEBUGPROCARB callback, const void *userParam);

     


Anonymous


Cancel   Add attachments