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();