From 9f15e25451f5b6e7031d5d2a2135bef7edf41c3c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Aug 2006 16:12:46 +0000 Subject: [PATCH] Added cleanup_frame to prevent crashes on exit. --- examples/osgtesselate/osgtesselate.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/osgtesselate/osgtesselate.cpp b/examples/osgtesselate/osgtesselate.cpp index 287de8606..5b153dff8 100644 --- a/examples/osgtesselate/osgtesselate.cpp +++ b/examples/osgtesselate/osgtesselate.cpp @@ -840,6 +840,12 @@ int main( int argc, char **argv ) } + // wait for all cull and draw threads to complete. + viewer.sync(); + + // do OpenGL clean up + viewer.cleanup_frame(); + // wait for all cull and draw threads to complete before exit. viewer.sync();