From 6391691be6d65dbf0b6720258894d8d4933310b9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 3 Sep 2005 20:54:32 +0000 Subject: [PATCH] Added release() to all GraphicsOperations in GraphicsThread. --- src/osg/GraphicsThread.cpp | 13 +++++++++++++ src/osgProducer/GraphicsContextImplementation.cpp | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/osg/GraphicsThread.cpp b/src/osg/GraphicsThread.cpp index af7a10aca..dcf36aaf1 100644 --- a/src/osg/GraphicsThread.cpp +++ b/src/osg/GraphicsThread.cpp @@ -122,6 +122,19 @@ int GraphicsThread::cancel() // then wait for the the thread to stop running. while(isRunning()) { + for(OperationQueue::iterator itr = _operations.begin(); + itr != _operations.end(); + ++itr) + { + BarrierOperation* barrier = dynamic_cast(itr->get()); + if (barrier) + { + barrier->release(); + //barrier->invalidate(); + osg::notify(osg::INFO)<<" Invalidating barrier "<realize(); } + + // _rs->useConfigEventThread(false); _closeOnDestruction = true; }