From 2122980d0a98aab7923a12ddfb11233a8ae17845 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 2 Jul 2016 10:14:06 +0100 Subject: [PATCH] Fixed number of processors setting --- 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 b7d02aec2..05ce7d662 100644 --- a/src/osgViewer/ViewerBase.cpp +++ b/src/osgViewer/ViewerBase.cpp @@ -328,7 +328,7 @@ void ViewerBase::startThreading() } } - int numProcessors = osg::minimum(1, OpenThreads::GetNumberOfProcessors()); + int numProcessors = osg::maximum(1, OpenThreads::GetNumberOfProcessors()); bool affinity = numProcessors>1; Contexts::iterator citr;