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:
parent
f6eae8dc3e
commit
f3ba8c8707
@ -37,6 +37,9 @@ void GraphicsThread::run()
|
||||
|
||||
OperationThread::run();
|
||||
|
||||
// release operations before the thread stops working.
|
||||
_operationQueue->releaseAllOperations();
|
||||
|
||||
if (graphicsContext)
|
||||
{
|
||||
graphicsContext->releaseContext();
|
||||
|
Loading…
Reference in New Issue
Block a user