Cleaned up numToTop method

This commit is contained in:
Robert Osfield
2007-04-25 10:32:28 +00:00
parent cfe746f795
commit 5325653f30
2 changed files with 2 additions and 2 deletions

View File

@@ -279,7 +279,7 @@ class OSGUTIL_EXPORT StateGraph : public osg::Referenced
}
inline static int numToPop(osg::State& state,StateGraph* sg_curr)
inline static int numToPop(StateGraph* sg_curr)
{
int numToPop = 0;
// need to pop back all statesets and matrices.

View File

@@ -377,7 +377,7 @@ void RenderBin::drawImplementation(osg::RenderInfo& renderInfo,RenderLeaf*& prev
// osg::notify(osg::NOTICE)<<"begin RenderBin::drawImplementation "<<className()<<" sortMode "<<getSortMode()<<std::endl;
unsigned int numToPop = (previous ? StateGraph::numToPop(state, previous->_parent) : 0);
unsigned int numToPop = (previous ? StateGraph::numToPop(previous->_parent) : 0);
if (numToPop>1) --numToPop;
unsigned int insertStateSetPosition = state.getStateSetStackSize() - numToPop;