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/osgshaders/osgshaders.cpp

    r5328 r5381  
    109109        viewer.frame(); 
    110110    } 
     111     
     112    // wait for all cull and draw threads to complete. 
     113    viewer.sync(); 
     114 
     115    // run a clean up frame to delete all OpenGL objects. 
     116    viewer.cleanup_frame(); 
     117 
     118    // wait for all the clean up frame to complete. 
    111119    viewer.sync(); 
    112120    return 0;