From 98c3d362e55b177ff147f29452557a4cd7b67646 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sun, 12 Apr 2009 10:29:10 +0000 Subject: [PATCH] Added release from svn/trunk to enable osgCompute. --- src/osg/GraphicsThread.cpp | 3 +++ 1 file changed, 3 insertions(+) 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();