Changeset 28753

Show
Ignore:
Timestamp:
11/30/08 17:06:25 (6 weeks ago)
Author:
korli
Message:

check if LockGL was called, before actually going on with UnlockGL

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/kits/opengl/GLView.cpp

    r28525 r28753  
    8585        // TODO: acquire the OpenGL API lock it on this glview 
    8686 
    87         LockLooper(); 
     87        if (!LockLooper()) 
     88                return; 
     89        fDisplayLock.Lock(); 
    8890        if (fRenderer) 
    8991                fRenderer->LockGL(); 
     
    9496BGLView::UnlockGL() 
    9597{ 
     98        if (!fDisplayLock.IsLocked()) 
     99                return; 
     100        fDisplayLock.Unlock(); 
    96101        if (fRenderer) 
    97102                fRenderer->UnlockGL();