From 0c595890388dbc38153c9f7d1b39703c8ac63c28 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 8 Feb 2007 12:21:37 +0000 Subject: [PATCH] Added check in setThreadingModel so that it only sets up threading if the viewer is realized --- src/osgViewer/CompositeViewer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgViewer/CompositeViewer.cpp b/src/osgViewer/CompositeViewer.cpp index 02c5e18bc..496b102a5 100644 --- a/src/osgViewer/CompositeViewer.cpp +++ b/src/osgViewer/CompositeViewer.cpp @@ -170,7 +170,7 @@ void CompositeViewer::setThreadingModel(ThreadingModel threadingModel) _threadingModel = threadingModel; - if (_threadingModel!=SingleThreaded) startThreading(); + if (isRealized() && _threadingModel!=SingleThreaded) startThreading(); }