Added viewer.cleanup_frame() to all examples.

This commit is contained in:
Robert Osfield
2006-08-02 19:55:03 +00:00
parent 0336231321
commit 41a4aa1548
63 changed files with 440 additions and 62 deletions

View File

@@ -285,7 +285,13 @@ int main( int argc, char **argv )
}
// wait for all cull and draw threads to complete before exit.
// wait for all cull and draw threads to complete.
viewer.sync();
// run a clean up frame to delete all OpenGL objects.
viewer.cleanup_frame();
// wait for all the clean up frame to complete.
viewer.sync();
return 0;