#9 glXMakeCurrent(display, None, NULL) fails

Other (69)

Before I destroy a window, I thought it was a good idea to release the
current GLX rendering context, so I did a

glXMakeCurrent(display, None, NULL);

However, the program immediately terminates with:

X Error of failed request: GLXBadContextTag
Major opcode of failed request: 145 (GLX)
Minor opcode of failed request: 5 (X_GLXMakeCurrent)
Serial number of failed request: 36
Current serial number in output stream: 36

Actually, everything works fine if I omit the call to glXMakeCurrent,
but am I on the safe side with this?

This also breaks glutDestroyWindow(). I didn't notice that first, since
I now use my own glut replacement library (the goal is to be a full
glut replacement under GPL).


  • Daryll Strauss

    Daryll Strauss - 1999-12-07
    • labels: 100100 --> Other
    • assigned_to: nobody --> daryll
    • milestone: 100100 --> Other
    • status: Error - status not found --> open
  • Kevin E Martin

    Kevin E Martin - 1999-12-12
    • assigned_to: daryll --> kem
    • status: open --> closed-fixed

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

Sign up for the SourceForge newsletter:

No, thanks