From 9b0b98200fd73f2e41cea08b63ba8bad0e249be3 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 25 Jul 2006 20:43:57 +0000 Subject: [PATCH] Force SingelThreaded usage due to use of osgParticle. --- examples/osgcatch/osgcatch.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/examples/osgcatch/osgcatch.cpp b/examples/osgcatch/osgcatch.cpp index e91c041ea..df51ef1dd 100644 --- a/examples/osgcatch/osgcatch.cpp +++ b/examples/osgcatch/osgcatch.cpp @@ -1456,8 +1456,9 @@ int main( int argc, char **argv ) viewer.setRealizeCallback(new CompileStateCallback(seh)); - // create the windows and run the threads. - viewer.realize(); + // create the windows and run the threads, note has to be single threaded + // due to use osgParticle + viewer.realize(Producer::CameraGroup::SingleThreaded); viewer.requestWarpPointer(0.5f,0.5f);