Fixed typos

This commit is contained in:
Robert Osfield 2018-05-21 13:18:29 +01:00
parent 0bca415d5a
commit 2c7d97266d

View File

@ -1569,12 +1569,12 @@ void CullVisitor::apply(osg::Camera& camera)
} }
else else
{ {
// cache the StateGraph and replace with a clone of the exisitng parental chain. // cache the StateGraph and replace with a clone of the existing parental chain.
osg::ref_ptr<StateGraph> previous_rootStateGraph = _rootStateGraph; osg::ref_ptr<StateGraph> previous_rootStateGraph = _rootStateGraph;
StateGraph* previous_currentStateGraph = _currentStateGraph; StateGraph* previous_currentStateGraph = _currentStateGraph;
{ {
// replicate the StageGraph parental chain so that state graph and render leaves all are kept local the the Camera's RenderStage. // replicate the StageGraph parental chain so that state graph and render leaves are kept local to the Camera's RenderStage.
typedef std::vector< osg::ref_ptr<StateGraph> > StageGraphStack; typedef std::vector< osg::ref_ptr<StateGraph> > StageGraphStack;
StageGraphStack stateGraphParentalChain; StageGraphStack stateGraphParentalChain;
StateGraph* sg = _currentStateGraph; StateGraph* sg = _currentStateGraph;
@ -1649,7 +1649,7 @@ void CullVisitor::apply(osg::Camera& camera)
rtts->reset(); rtts->reset();
} }
// assign the state grph to the RenderStage to ensure it remains in memory for the draw traversal. // assign the state graph to the RenderStage to ensure it remains in memory for the draw traversal.
rtts->setStateGraph(_rootStateGraph); rtts->setStateGraph(_rootStateGraph);
// set up clear masks/values // set up clear masks/values
@ -1700,7 +1700,7 @@ void CullVisitor::apply(osg::Camera& camera)
} }
// restored cache of the StateGraph // restore cache of the StateGraph
_rootStateGraph = previous_rootStateGraph; _rootStateGraph = previous_rootStateGraph;
_currentStateGraph = previous_currentStateGraph; _currentStateGraph = previous_currentStateGraph;