Method Win32Window::create call wglMakeCurrent changed
the current GL context, but the changes doesn't update
GLRenderSystem::mCurrentContext according with it.
So there are potential issues in some rarely situation.
1. Create main render window.
2. Create second render window.
3. Destroy second render window.
4. Create hardware buffer, texture, etc.
In step 3, the GL context sets to NULL because the
current context destroyed, thus, no any hardware
resources can create in step 4 (exception throwing if
you do that).
The attach patch just reset mCurrentContext as current
GL context after created new window.
Log in to post a comment.