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

    r4805 r5381  
    372372        // fire off the cull and draw traversals of the scene. 
    373373        viewer.frame(); 
    374      
    375         // wait for all cull and draw threads to complete before exit. 
    376         viewer.sync(); 
    377          
    378     } 
     374         
     375    } 
     376 
     377    // wait for all cull and draw threads to complete. 
     378    viewer.sync(); 
     379 
     380    // run a clean up frame to delete all OpenGL objects. 
     381    viewer.cleanup_frame(); 
     382 
     383    // wait for all the clean up frame to complete. 
     384    viewer.sync(); 
    379385 
    380386    return 0;