Show
Ignore:
Timestamp:
05/07/05 22:47:09 (9 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/osgwindows/osgwindows.cpp

    r2255 r4170  
    160160    viewer.sync(); 
    161161 
     162    // run a clean up frame to delete all OpenGL objects. 
     163    viewer.cleanup_frame(); 
     164 
     165    // wait for all the clean up frame to complete. 
     166    viewer.sync(); 
     167 
    162168    return 0; 
    163169}