Hello. I face a problem with a program attribute.
I enable the program using this: osg::StateSet* stateset = model_node->getOrCreateStateSet(); stateset->setAttributeAndModes( program, osg::StateAttribute::ON | osg::StateAttribute::OVERRIDE ); and i disable it using: osg::StateSet* stateset = model_node->getOrCreateStateSet(); stateset->removeAttribute(osg::StateAttribute::PROGRAM); Before the return viewer.run() , enable and disable operations work fine. But after that, only enable works. I use 2 buttons to enable and disable program in run time. what do i do wrong ? thank you.
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

