diff --git a/src/osg/GraphicsThread.cpp b/src/osg/GraphicsThread.cpp index 3401685d2..cac0ea4a8 100644 --- a/src/osg/GraphicsThread.cpp +++ b/src/osg/GraphicsThread.cpp @@ -37,6 +37,9 @@ void GraphicsThread::run() OperationThread::run(); + // release operations before the thread stops working. + _operationQueue->releaseAllOperations(); + if (graphicsContext) { graphicsContext->releaseContext();