On Wed, Sep 5, 2012 at 8:38 AM, Robert Osfield <robert.osfi...@gmail.com>wrote:
> Hi Peterakos, > > On 5 September 2012 11:36, Peterakos <hay...@gmail.com> wrote: > > I disabled it in run time and checked the state set before and after this > > line: > > stateset->removeAttribute(osg::StateAttribute::PROGRAM) > > > > Before that line the program was in attribute list along with lighting. > > After that line, only lighting was there. But still the shaders seem > active. > > This suggests an issue with osg::State's lazy state up dating not > applying it's default value for osg::StateAttribute::PROGRAM. > > Could you create a small OSG example that illustrates this problem so > that others can help look into it. > FWIW, I did this just a few weeks ago; I wrote a simple test program (no longer have it) to see whether OSG was correctly applying the default global PROGRAM attribute. It was working correctly. Glenn Waldron / @glennwaldron
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org