Added cleanup_frame to prevent crashes on exit.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user