From 9c24dc7083d646ae98768e45ae4a947a85d9aa07 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 19 Feb 2008 12:26:19 +0000 Subject: [PATCH] Changed the updating of the contextID so that the DisplaySetting::MaxNumberOfGrapicsContexts() is updated on each new graphics context creation, in keeping with how osgProducer used to do things. --- src/osg/GraphicsContext.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 "<