From 6fc7f82a31b5bbb8d1a629d3ad0f7732e6d9aee3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 19 Mar 2003 15:57:31 +0000 Subject: [PATCH] Added sync at the end of the main loop to prevent seg fault on exit. --- examples/osgimpostor/osgimpostor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/examples/osgimpostor/osgimpostor.cpp b/examples/osgimpostor/osgimpostor.cpp index 0b0fcbb3d..6e0ab5453 100644 --- a/examples/osgimpostor/osgimpostor.cpp +++ b/examples/osgimpostor/osgimpostor.cpp @@ -339,6 +339,10 @@ int main( int argc, char **argv ) viewer.frame(); } + + // wait for all cull and draw threads to complete. + viewer.sync(); + return 0; }