diff --git a/src/osgViewer/Renderer.cpp b/src/osgViewer/Renderer.cpp index be5113870..af125c526 100644 --- a/src/osgViewer/Renderer.cpp +++ b/src/osgViewer/Renderer.cpp @@ -453,24 +453,25 @@ void Renderer::cull_draw() osgUtil::SceneView* sceneView = _sceneView[0].get(); if (!sceneView || _done) return; + if (_done) + { + osg::notify(osg::INFO)<<"Render::release() causing cull_draw to exit"<(_camera->getView()); osgDB::DatabasePager* databasePager = view ? view->getDatabasePager() : 0; osg::GraphicsContext* compileContext = osg::GraphicsContext::getCompileContext(sceneView->getState()->getContextID()); osg::GraphicsThread* compileThread = compileContext ? compileContext->getGraphicsThread() : 0; - if (_done) - { - osg::notify(osg::INFO)<<"Render::release() causing cull_draw to exit"<