Changeset 13041 for OpenSceneGraph/trunk/src/osgQt/GraphicsWindowQt.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgQt/GraphicsWindowQt.cpp
r12963 r13041 200 200 // We workaround above problems by deferring execution of problematic event requests. 201 201 // These events has to be enqueue and executed later in a main GUI thread (GUI operations 202 // outside the main thread are not allowed) just before makeCurrent is called from the 202 // outside the main thread are not allowed) just before makeCurrent is called from the 203 203 // right thread. The good place for doing that is right after swap in a swapBuffersImplementation. 204 204 205 205 if (event->type() == QEvent::Hide) 206 206 { … … 532 532 { 533 533 _widget->setWindowFlags( flags ); 534 534 535 535 return true; 536 536 } 537 537 538 538 return false; 539 539 } … … 674 674 675 675 void GraphicsWindowQt::runOperations() 676 { 676 { 677 677 // While in graphics thread this is last chance to do something useful before 678 // graphics thread will execute its operations. 678 // graphics thread will execute its operations. 679 679 if (_widget->getNumDeferredEvents() > 0) 680 680 _widget->processDeferredEvents();
