Merge pull request #442 from eligovision/OpenSceneGraph_viewer

osgViewer::ViewerBase setThreadingModel function fixed
This commit is contained in:
OpenSceneGraph git repository
2018-01-13 16:07:56 +00:00
committed by GitHub

View File

@@ -205,11 +205,13 @@ void ViewerBase::setThreadingModel(ThreadingModel threadingModel)
{
if (_threadingModel == threadingModel) return;
bool needSetUpThreading = _threadsRunning;
if (_threadsRunning) stopThreading();
_threadingModel = threadingModel;
setUpThreading();
if (needSetUpThreading) setUpThreading();
}
ViewerBase::ThreadingModel ViewerBase::suggestBestThreadingModel()