Show
Ignore:
Timestamp:
05/20/08 11:28:44 (10 years ago)
Author:
robert
Message:

Moved the compile to after the updateSceneView

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgViewer/Renderer.cpp

    r8299 r8324  
    454454    if (!sceneView || _done) return; 
    455455 
     456    if (_done) 
     457    { 
     458        osg::notify(osg::INFO)<<"Render::release() causing cull_draw to exit"<<std::endl; 
     459        return; 
     460    } 
     461     
     462    updateSceneView(sceneView); 
     463 
    456464    if (_compileOnNextDraw) 
    457465    { 
    458466        compile(); 
    459467    } 
    460  
    461     updateSceneView(sceneView); 
    462468 
    463469    osgViewer::View* view = dynamic_cast<osgViewer::View*>(_camera->getView()); 
     
    467473    osg::GraphicsThread* compileThread = compileContext ? compileContext->getGraphicsThread() : 0; 
    468474 
    469     if (_done) 
    470     { 
    471         osg::notify(osg::INFO)<<"Render::release() causing cull_draw to exit"<<std::endl; 
    472         return; 
    473     } 
    474475 
    475476    // osg::notify(osg::NOTICE)<<"RenderingOperation"<<std::endl;