Changed the updateStateSet code so that it creates a new StateSet each update rather than clear and reuse the existing one, this change fixes a threading issue that occured when the viewer is in DrawThreadPerContext.
Changed the updateStateSet code so that it creates a new StateSet each update
rather than clear and reuse the existing one, this change fixes a threading
issue that occured when the viewer is in DrawThreadPerContext.



artoolkit/osg,jtorresfabra/osg,tomasthoresen/osg,scrawl/osg,artoolkit/osg,marchelbling/osg,openscenegraph/osg,jtorresfabra/osg,openscenegraph/osg,artoolkit/osg,openscenegraph/osg,jtorresfabra/osg,tomasthoresen/osg,tomasthoresen/osg,artoolkit/osg,scrawl/osg,marchelbling/osg,scrawl/osg,openscenegraph/osg,scrawl/osg,marchelbling/osg,tomasthoresen/osg,jtorresfabra/osg,marchelbling/osg