Cleaned up numToTop method
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user