Show
Ignore:
Timestamp:
03/25/03 11:05:09 (12 years ago)
Author:
robert
Message:

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

Removed the Win32 remapping of keycodes from the osgProducer::EventAdapter?.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osgparticle/osgparticle.cpp

    r1697 r1747  
    386386         
    387387    // create the windows and run the threads. 
    388     viewer.realize(Producer::CameraGroup::ThreadPerCamera); 
     388    //    viewer.realize(Producer::CameraGroup::ThreadPerCamera); 
     389    // run single threaded since osgParticle still writes during cull. 
     390    viewer.realize(Producer::CameraGroup::SingleThreaded); 
    389391 
    390392    while( !viewer.done() ) 
     
    401403         
    402404    } 
     405     
     406    // wait for all cull and draw threads to complete before exit. 
     407    viewer.sync(); 
    403408 
    404409    return 0;