From 100cc12ecbe37bbbcad83ca7df96455be1fc37cb Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 20 May 2008 09:28:44 +0000 Subject: [PATCH] Moved the compile to after the updateSceneView --- src/osgViewer/Renderer.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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"<