#429 Wrong current GL context after create new window

closed-accepted
nobody
bugfix (702)
5
2005-10-28
2005-09-29
Genva
No

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.
For example:
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.

Discussion

  • Genva

    Genva - 2005-09-29

    The patch file

     
  • Genva

    Genva - 2005-10-28
    • status: open --> closed-accepted
     
  • Genva

    Genva - 2005-10-28

    Logged In: YES
    user_id=1142737

    Ok, I commit it myself with a little modified version.

     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks