Fixed number of processors setting

This commit is contained in:
Robert Osfield 2016-07-02 10:14:06 +01:00
parent 9ae4a4fc27
commit 2122980d0a

View File

@ -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; bool affinity = numProcessors>1;
Contexts::iterator citr; Contexts::iterator citr;