Hi, since we cannot turn off a shader program like this:
setAttributeAndModes(shaderprogram, osg::StateAttribute::OFF) .. I tried the suggested method from this post (http://www.mail-archive.com/[EMAIL PROTECTED]/msg08493.html), and I simply removeAttribute(...) the shader from the stateset. This part works quite well. However, if I want to turn it back on again, setAttributeAndModes(shaderprogram, osg::StateAttribute::ON) produces a segmentation fault. I have no idea why. The shaderprogram pointer is still valid. I ran this through gdb and it was unhelpful. any ideas? thanks, Louis Bouchard _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

