I noticed the same problem - crash on exit.
It happens in a glDeleteTextures() call. At this point, the OpenGL context seems
not to exist anymore. Any other calls to OpenGL failed as well.
For my own purposes, I removed the call to glDeleteTextures() and everything
works fine now.
I think, the order in which the OpenGL context and the objects are destroyed is
messed up, but I haven't further investigated in the matter. |