Hi, Alex In singlethreaded mode - you should be ok if you change program during event\update traversal. In multithreaded - additionally use setDataVariance(osg::Object::DYNAMIC) on stateset which contains program.
Cheers, Sergey. 22.05.2012, 09:51, "Pecoraro, Alexander N" <[email protected]>: > What is the proper way to switch the osg::Program that an osg::StateSet is > using? Is the StateSet's update callback the only way to do it? I tried doing > it in the Camera's post draw callback, but I still get a segfault from the > render thread that is still using the old osg::Program. > > Thanks. > > Alex > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

