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.



koshman86/osg,artoolkit/osg,ntoand/osg,ghub/osg,ntoand/osg,stmh/osg,omega-hub/osg,omega-hub/osg,stmh/osg,koshman86/osg,XiaoCC/osg,ghub/osg,stmh/osg,stmh/osg,stmh/osg,ntoand/osg,XiaoCC/osg,artoolkit/osg,ghub/osg,omega-hub/osg,artoolkit/osg,XiaoCC/osg,ghub/osg,XiaoCC/osg,koshman86/osg,artoolkit/osg,koshman86/osg,ntoand/osg,XiaoCC/osg,omega-hub/osg