Hi, coming to this thread late, sorry if redundant.
There occasionally creeps up a question about osg::Program state leakage, and I could have sworn it was fixed, but maybe not. Is the problem fixed adding an empty osg::Program at the very root of the scenegraph? Such state leakage seems due to OSG not having a defined baseline of state wrt glProgram. Rather than a "disapply", simply having that baseline state gives osg::State something to restore to. If this does fix it, I would recommend that we have osg::State attach its own empty osg::Program "above the scene root". does that make sense? -- mew On Fri, May 23, 2008 at 2:51 AM, Robert Osfield <[EMAIL PROTECTED]> wrote: > On Thu, May 22, 2008 at 7:48 PM, Art Tevs <[EMAIL PROTECTED]> wrote: >> Hi Stephane, >> >> Stephane, try to put an empty shader program on the cow, just like this: >> >> cow->getOrCreateStateSet()->setAttribute(new osg::Program(), >> osg::StateAttribute::ON); >> >> I think this could help you. >> And if not then just add an empty UniformList to the stateset of the cow. > > Interesting observation... might be a good clue to figuring out why > this is happening. > > Robert. > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- Mike Weiblen -- Austin Texas USA -- http://mew.cx/ _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

