fix nvidia gl lock problem, update active vwindow tests
[goodguy/history.git] / cinelerra-5.0 / guicast / bcwindowbase.C
index 32547118e6514c29fd63d1b52b0884b7082fb3e0..59963d6d4b5dd31ea511a6a287fa9b31ab4d4044 100644 (file)
@@ -140,8 +140,10 @@ BC_WindowBase::~BC_WindowBase()
                if( !glx_win ) {
 // NVIDIA library threading problem, XCloseDisplay SEGVs without this
                        sync_lock("BC_WindowBase::~BC_WindowBase:XDestroyWindow");
+                       lock_window("BC_WindowBase::~BC_WindowBase:XDestroyWindow");
                        glXMakeContextCurrent(top_level->display, 0, 0, 0);
                        XDestroyWindow(top_level->display, win);
+                       unlock_window();
                        sync_unlock();
                }
                else