Added a viewer.sync to the end of all the demos.

Removed the Win32 remapping of keycodes from the osgProducer::EventAdapter.
This commit is contained in:
Robert Osfield
2003-03-25 10:05:09 +00:00
parent 05681b8eda
commit 35e0ba12bc
34 changed files with 199 additions and 138 deletions

View File

@@ -385,7 +385,9 @@ int main(int argc, char **argv)
viewer.setSceneData(root);
// create the windows and run the threads.
viewer.realize(Producer::CameraGroup::ThreadPerCamera);
// viewer.realize(Producer::CameraGroup::ThreadPerCamera);
// run single threaded since osgParticle still writes during cull.
viewer.realize(Producer::CameraGroup::SingleThreaded);
while( !viewer.done() )
{
@@ -400,6 +402,9 @@ int main(int argc, char **argv)
viewer.frame();
}
// wait for all cull and draw threads to complete before exit.
viewer.sync();
return 0;
}