From Stephan Huber, fix for crash on exit

This commit is contained in:
Robert Osfield
2007-08-23 14:35:04 +00:00
parent 6827104532
commit a3ce9f680a

View File

@@ -306,7 +306,7 @@ void Renderer::draw()
DEBUG_MESSAGE<<"draw() got SceneView "<<sceneView<<std::endl;
osg::GraphicsContext* compileContext = osg::GraphicsContext::getCompileContext(sceneView->getState()->getContextID());
osg::GraphicsContext* compileContext = sceneView ? osg::GraphicsContext::getCompileContext(sceneView->getState()->getContextID()) : 0;
osg::GraphicsThread* compileThread = compileContext ? compileContext->getGraphicsThread() : 0;
if (sceneView || _done)