Added osg::State::popAllStateSets() method to pop all remain StateSet's off

the state stack, thus readying the state object to recieve a new frame.

Removed the state.reset() call in osgUtil::SceneView::cull() as this was
causing problems with stats producing inheritance of state when toggling
stats on.
This commit is contained in:
Robert Osfield
2003-09-10 21:22:47 +00:00
parent 1707276707
commit 69c4e87bb7
4 changed files with 15 additions and 3 deletions

View File

@@ -170,7 +170,7 @@ void ViewerEventHandler::StatsAndHelpDrawCallback::operator()( const Producer::C
state.popStateSet();
state.apply();
//state.apply();
}