Show
Ignore:
Timestamp:
11/09/05 21:26:34 (9 years ago)
Author:
robert
Message:

Added release and flush of OpenGL objects after build of the terrain database to prevent
the build graphics context state leaking into the viewers graphics context set.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgsimulation/osgsimulation.cpp

    r4711 r4722  
    9797         
    9898        scene = dataSet->getDestinationRootNode(); 
     99         
     100        // now we must get rid of all the old OpenGL objects before we start using the scene graph again  
     101        // otherwise it'll end up in an inconsistent state. 
     102        scene->releaseGLObjects(dataSet->getState()); 
     103        osg::Texture::flushAllDeletedTextureObjects(0); 
     104        osg::Drawable::flushAllDeletedDisplayLists(0); 
    99105    } 
    100106