Show
Ignore:
Timestamp:
05/07/05 22:47:09 (10 years ago)
Author:
robert
Message:

Added more comprehensive releaseGLObjects(State*=0) throughout Nodes,
Drawables,StateSet?, and osgDB::Registry.

Added cleanup_frame() from to osgProducer::OsgCamerGroup? to help with proper
clean of OpenGL objects before exit, and modified osgviewer, osghangglider,
osgwindows examples to do the extra frame call to cleanup_frame() before exit.

Files:
1 modified

Legend:

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

    r2517 r4170  
    167167    viewer.sync(); 
    168168 
     169    // run a clean up frame to delete all OpenGL objects. 
     170    viewer.cleanup_frame(); 
     171 
     172    // wait for all the clean up frame to complete. 
     173    viewer.sync(); 
     174 
    169175    return 0; 
    170176}