From d4611499697df128eacea1bc97d4fabcbcd17874 Mon Sep 17 00:00:00 2001 From: Laurens Voerman Date: Mon, 17 Oct 2016 09:50:48 +0200 Subject: [PATCH] re-assign thread affinity at the end of setThreadingModel() --- src/osgViewer/ViewerBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/ViewerBase.cpp b/src/osgViewer/ViewerBase.cpp index 49967a15e..510ab3adb 100644 --- a/src/osgViewer/ViewerBase.cpp +++ b/src/osgViewer/ViewerBase.cpp @@ -204,7 +204,7 @@ void ViewerBase::setThreadingModel(ThreadingModel threadingModel) _threadingModel = threadingModel; - if (isRealized() && _threadingModel!=SingleThreaded) startThreading(); + setUpThreading(); } ViewerBase::ThreadingModel ViewerBase::suggestBestThreadingModel()