Fixed compute of numProcessors
This commit is contained in:
parent
9dffcaf36a
commit
295da33cdf
@ -654,7 +654,7 @@ void CompositeViewer::realize()
|
|||||||
|
|
||||||
if (osg::DisplaySettings::instance()->getCompileContextsHint())
|
if (osg::DisplaySettings::instance()->getCompileContextsHint())
|
||||||
{
|
{
|
||||||
int numProcessors = osg::minimum(1, OpenThreads::GetNumberOfProcessors());
|
int numProcessors = osg::maximum(1, OpenThreads::GetNumberOfProcessors());
|
||||||
int processNum = 0;
|
int processNum = 0;
|
||||||
|
|
||||||
for(unsigned int i=0; i<= osg::GraphicsContext::getMaxContextID(); ++i)
|
for(unsigned int i=0; i<= osg::GraphicsContext::getMaxContextID(); ++i)
|
||||||
|
@ -596,7 +596,7 @@ void Viewer::realize()
|
|||||||
|
|
||||||
if (osg::DisplaySettings::instance()->getCompileContextsHint())
|
if (osg::DisplaySettings::instance()->getCompileContextsHint())
|
||||||
{
|
{
|
||||||
int numProcessors = osg::minimum(1, OpenThreads::GetNumberOfProcessors());
|
int numProcessors = osg::maximum(1, OpenThreads::GetNumberOfProcessors());
|
||||||
int processNum = 0;
|
int processNum = 0;
|
||||||
|
|
||||||
for(unsigned int i=0; i<= osg::GraphicsContext::getMaxContextID(); ++i)
|
for(unsigned int i=0; i<= osg::GraphicsContext::getMaxContextID(); ++i)
|
||||||
|
Loading…
Reference in New Issue
Block a user