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