#186 <GL/glext.h> defines GL_VERSION_1_2 bug

WSL
closed
None
Support
fixed
featured-pre-wsl
False
2013-02-18
2002-09-16
Greg Couch
No

<GL/gl.h> carefully avoids defining GL_VERSION_1_2 and
GL_VERSION_1_3 because openg32.dll doesn't have those
entry points, and it then includes <GL/glext.h> which
defines them. Not sure what the right fix is, I just
moved the #define inside the #ifdef
GL_GLEXT_PROTOTYPES. This is with mingw-2.0.

I'd also like to see Wglext.h distributed with MinGW.
I've attached a copy. It should be installed a
<GL/Wglext.h>. Thanks, Greg

Discussion

  • Greg Couch

    Greg Couch - 2002-09-16

    Logged In: YES
    user_id=131838

    Please delete the accidental duplicate.

    So I see this is a generic problem with glext.h, glxext.h,
    and wglext.h as distributed on
    http://oss.sgi.com/projects/ogl-sample/registry/. My guess
    is that the right solution would be to not include
    <GL/glext.h> from <GL/gl.h>.
    Source files that need those function prototypes would
    explicitly include glext.h and be able to deal with this
    mess. I will submit a bug against the OpenGL sample
    implementation and see what kind of response I get.

    - Greg

     
  • Earnie Boyd

    Earnie Boyd - 2003-02-09
    • status: open --> closed-accepted
     
  • Earnie Boyd

    Earnie Boyd - 2003-02-09

    Logged In: YES
    user_id=15438

    I've removed the include of glext.h from gl.h I don't see
    your attached Wglext.h.

    Earnie.

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-30
    • labels: w32api (deprecated use WSL) -->
    • status: closed-accepted --> closed
    • resolution: --> accepted
    • category: --> Known_bugs
    • milestone: --> WSL
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-30
    • resolution: accepted --> fixed
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-18
    • type: --> Support
    • category: Known_bugs --> featured-pre-wsl
    • patch_attached: --> False