Fixed number of processors setting
This commit is contained in:
parent
9ae4a4fc27
commit
2122980d0a
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user