I am curious why QGLContext::currentContext() returns a const QGLcontext *, but QGLContext::makeCurrent() is not const. This makes it impossible to save a context to make it current later without casting. Are there non-obvious restrictions that would make the following illegal:
Qt Code:
// [... Something that possibly changes the context ] saveContext->makeCurrent();To copy to clipboard, switch view to plain text mode
Bookmarks