Added viewer.cleanup_frame() to all examples.
This commit is contained in:
parent
0336231321
commit
41a4aa1548
@ -279,7 +279,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -214,7 +214,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -221,7 +221,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -203,7 +203,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -199,7 +199,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1479,6 +1479,9 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait for all cull and draw threads to complete.
|
||||||
|
viewer.sync();
|
||||||
|
|
||||||
// run a clean up frame to delete all OpenGL objects.
|
// run a clean up frame to delete all OpenGL objects.
|
||||||
viewer.cleanup_frame();
|
viewer.cleanup_frame();
|
||||||
|
|
||||||
|
@ -171,7 +171,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -577,7 +577,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();
|
viewer.sync();
|
||||||
|
|
||||||
// if we are master clean up by telling all slaves that we're going down.
|
// if we are master clean up by telling all slaves that we're going down.
|
||||||
|
@ -248,7 +248,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -160,7 +160,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1374,7 +1374,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -493,7 +493,13 @@ int main(int argc, char** argv)
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -243,7 +243,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1132,7 +1132,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -375,7 +375,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -188,7 +188,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -706,7 +706,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -236,7 +236,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -339,6 +339,11 @@ int main( int argc, char **argv )
|
|||||||
// wait for all cull and draw threads to complete.
|
// wait for all cull and draw threads to complete.
|
||||||
viewer.sync();
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -442,7 +442,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -442,7 +442,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -372,10 +372,16 @@ int main( int argc, char **argv )
|
|||||||
// fire off the cull and draw traversals of the scene.
|
// fire off the cull and draw traversals of the scene.
|
||||||
viewer.frame();
|
viewer.frame();
|
||||||
|
|
||||||
// wait for all cull and draw threads to complete before exit.
|
}
|
||||||
|
|
||||||
|
// wait for all cull and draw threads to complete.
|
||||||
viewer.sync();
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -259,7 +259,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -213,7 +213,13 @@ int main( int argc, char **argv )
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -506,7 +506,13 @@ arguments.getApplicationUsage()->setCommandLineUsage(arguments.getApplicationNam
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -162,7 +162,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -484,7 +484,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -133,7 +133,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -130,7 +130,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -369,6 +369,13 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -299,7 +299,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -402,7 +402,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -495,7 +495,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -797,7 +797,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -279,7 +279,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -967,7 +967,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -255,7 +255,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -93,6 +93,15 @@ int main(int, char *[])
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,7 +187,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -477,7 +477,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -354,7 +354,13 @@ int main(int argc, char** argv)
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -409,7 +409,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -175,7 +175,13 @@ int main( int argc, char **argv )
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -144,7 +144,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -108,6 +108,14 @@ int main( int argc, char **argv )
|
|||||||
viewer.update();
|
viewer.update();
|
||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 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();
|
viewer.sync();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -846,7 +846,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -232,7 +232,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -154,7 +154,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -183,7 +183,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -410,7 +410,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -187,7 +187,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -672,7 +672,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -329,7 +329,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -538,7 +538,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -369,7 +369,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -554,7 +554,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -218,7 +218,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();
|
viewer.sync();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -740,7 +740,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();
|
viewer.sync();
|
||||||
|
|
||||||
|
|
||||||
|
@ -288,8 +288,13 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait for all cull and draw threads to complete.
|
||||||
|
viewer.sync();
|
||||||
|
|
||||||
// wait for all cull and draw threads to complete before exit.
|
// run a clean up frame to delete all OpenGL objects.
|
||||||
|
viewer.cleanup_frame();
|
||||||
|
|
||||||
|
// wait for all the clean up frame to complete.
|
||||||
viewer.sync();
|
viewer.sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -294,7 +294,13 @@ int main(int argc, char** argv)
|
|||||||
viewer.frame();
|
viewer.frame();
|
||||||
}
|
}
|
||||||
|
|
||||||
// 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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -435,7 +435,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();
|
viewer.sync();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -1658,8 +1658,13 @@ int main( int argc, char **argv )
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// wait for all cull and draw threads to complete.
|
||||||
|
viewer.sync();
|
||||||
|
|
||||||
// wait for all cull and draw threads to complete before exit.
|
// run a clean up frame to delete all OpenGL objects.
|
||||||
|
viewer.cleanup_frame();
|
||||||
|
|
||||||
|
// wait for all the clean up frame to complete.
|
||||||
viewer.sync();
|
viewer.sync();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user