#200 glGetPointerv of GL_KHR_debug hides OpenGL 1.1

1.10.0
closed
8
2013-08-23
2012-08-31
Anonymous
No

glew-1.9.0 initializes glGetPointerv only of the GL_KHR_debug extension is present, otherwise it remains null - even though the NVidia opengl impl exports the symbol.
However, glGetPointerv should alsways be present as it's part of the OpenGL 1.1 API.

My builds of Warzone 2100 now crash during startup because it now links to libGLEW::__glewGetPointerv instead of LibGL::glGetPointerv, hence calls null.

If I read the GL_KHR_debug correctly, it tries to say that additional tokens are now accepted by the <pname> parameter of GetPointerv( DEBUG_CALLBACK_FUNCTION and DEBUG_CALLBACK_USER_PARAM) and rather not that the method itself is new.

Discussion

  • Nigel Stewart

    Nigel Stewart - 2012-09-02

    Thanks for the report. I'd like to put a GLEW 1.9.1 together, soon.

     
  • Nigel Stewart

    Nigel Stewart - 2012-09-17

    Confirmed. The fix is in progress.

     
  • Nigel Stewart

    Nigel Stewart - 2012-09-17
    • status: open --> accepted
    • assigned_to: Nigel Stewart
    • milestone: --> 1.9.1
     
  • Nigel Stewart

    Nigel Stewart - 2012-09-17
    • status: accepted --> pending
     
  • Anonymous - 2012-12-20

    Note that it would be good to add glGetPointervEXT of the GL_EXT_vertex_array extension for compatibility with code depending on GL_EXT_vertex_array.

     
  • Leonard Oremont

    Leonard Oremont - 2013-06-03

    While we wait for 1.9.1, the easy and quick solution is to edit the glew.h header and comment out the following line:

    define glGetPointerv GLEW_GET_FUN(__glewGetPointerv)

    as in:

    //rem #define glGetPointerv GLEW_GET_FUN(__glewGetPointerv)

    and rebuilf the project. This worked fine for me when building the 002_triangle_compatibility project in OGLplus 0.31.0

     
  • Leonard Oremont

    Leonard Oremont - 2013-06-09

    I need to correct myself. It turned out that I was using the wrong glew library for my nuild. There is no need to remove the glGetPointerv as I did in my previous comment.

     
  • 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.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks