Introduced a releaseAllOperation after completeion of OperationThread::run() to enable CUDA integration (in osgCuda) to be able to free up its resources. Code drawn from a submission from Mick.

This commit is contained in:
Robert Osfield 2009-03-12 17:26:21 +00:00
parent f6eae8dc3e
commit f3ba8c8707

View File

@ -37,6 +37,9 @@ void GraphicsThread::run()
OperationThread::run();
// release operations before the thread stops working.
_operationQueue->releaseAllOperations();
if (graphicsContext)
{
graphicsContext->releaseContext();