Re: [osg-users] glPushAttrib(GL_ALL_ATTRIB_BITS) vs. pushStateSet(), apply(), popStateSet()

2008-02-20 Thread Robert Osfield
Hi Brett, State::pushStateSet()/popStateSet() is not equivilant to glPushAttrib/glPopAttrib() son't can't be used in place. There are several haveApplied*() methods in osg::State that can be used to pass declare certain state dirty, and this is the most efficient way to do things, but... it does

[osg-users] glPushAttrib(GL_ALL_ATTRIB_BITS) vs. pushStateSet(), apply(), popStateSet()

2008-02-20 Thread Brett Wiesner
Hi, I have a custom drawable that makes calls to some openGL code in the drawImplementation() method (much like the osgTeapot example). The code is from a 3rd party vendor and they obviously make calls that change some openGL attributes because things like the stats handler stop working after