Show
Ignore:
Timestamp:
08/02/06 21:55:03 (8 years ago)
Author:
robert
Message:

Added viewer.cleanup_frame() to all examples.

Files:
1 modified

Legend:

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

    r5328 r5381  
    280280    } 
    281281     
    282     // wait for all cull and draw threads to complete before exit. 
     282    // wait for all cull and draw threads to complete. 
    283283    viewer.sync(); 
     284 
     285    // run a clean up frame to delete all OpenGL objects. 
     286    viewer.cleanup_frame(); 
     287 
     288    // wait for all the clean up frame to complete. 
     289    viewer.sync(); 
    284290     
    285291    return 0;