#125 glPointParameterfv has wrong signature

closed
Nigel Stewart
API (59)
5
2012-09-15
2010-03-22
Markus Henschel
No

glPointParameterfv has a wrong function signature in glew. This is what the opengl standard says:
glPointParameterfv(GLenum, const GLfloat*)

In glew the GLfloat pointer is not const. This applies to glPointParameterfv, glPointParameterfvARB and glPointParameterfvEXT.

Discussion

  • Nigel Stewart
    Nigel Stewart
    2010-03-25

    Confirming this.

    The const appears in the openg.org spec pdf and glext.h, but not the relevant extension specifications.

    Assigning to myself.

     
  • Nigel Stewart
    Nigel Stewart
    2010-03-26

    A fix for GL_VERSION_1_4 has gone into svn just now.
    Fixes for the ARB and EXT versions are being made upstream to the extension spec repository.

     
  • Nigel Stewart
    Nigel Stewart
    2010-04-28

    Partially resolved in GLEW 1.5.4 release.
    Still working on ARB and EXT spec revisions for upstream.

     
  • Nigel Stewart
    Nigel Stewart
    2010-06-29

    Proposed patch:

    Index: auto/core/GL_ARB_point_parameters

    --- auto/core/GL_ARB_point_parameters (revision 0)
    +++ auto/core/GL_ARB_point_parameters (revision 0)
    @@ -0,0 +1,9 @@
    +GL_ARB_point_parameters
    +http://www.opengl.org/registry/specs/ARB/point_parameters.txt
    +GL_ARB_point_parameters
    + GL_POINT_SIZE_MIN_ARB 0x8126
    + GL_POINT_SIZE_MAX_ARB 0x8127
    + GL_POINT_FADE_THRESHOLD_SIZE_ARB 0x8128
    + GL_POINT_DISTANCE_ATTENUATION_ARB 0x8129
    + void glPointParameterfARB (GLenum pname, GLfloat param)
    + void glPointParameterfvARB (GLenum pname, const GLfloat params)
    Index: auto/core/GL_EXT_point_parameters
    ===================================================================
    --- auto/core/GL_EXT_point_parameters (revision 0)
    +++ auto/core/GL_EXT_point_parameters (revision 0)
    @@ -0,0 +1,9 @@
    +GL_EXT_point_parameters
    +http://www.opengl.org/registry/specs/EXT/point_parameters.txt
    +GL_EXT_point_parameters
    + GL_POINT_SIZE_MIN_EXT 0x8126
    + GL_POINT_SIZE_MAX_EXT 0x8127
    + GL_POINT_FADE_THRESHOLD_SIZE_EXT 0x8128
    + GL_DISTANCE_ATTENUATION_EXT 0x8129
    + void glPointParameterfEXT (GLenum pname, GLfloat param)
    + void glPointParameterfvEXT (GLenum pname, const GLfloat
    params)

     
  • Nigel Stewart
    Nigel Stewart
    2010-06-30

    Fixed in svn. Will appear in next GLEW release.
    Leaving this open for when the upstream fix is available.

     


Anonymous


Cancel   Add attachments