diff --git a/src/osg/GraphicsContext.cpp b/src/osg/GraphicsContext.cpp index da78a70b1..79cf290d6 100644 --- a/src/osg/GraphicsContext.cpp +++ b/src/osg/GraphicsContext.cpp @@ -214,8 +214,15 @@ unsigned int GraphicsContext::createNewContextID() osg::notify(osg::INFO)<<"GraphicsContext::createNewContextID() creating contextID="< osg::DisplaySettings::instance()->getMaxNumberOfGraphicsContexts(); +#endif - if ( (contextID+1) > osg::DisplaySettings::instance()->getMaxNumberOfGraphicsContexts() ) + if (updateContextID) { osg::notify(osg::INFO)<<"Updating the MaxNumberOfGraphicsContexts to "<