Skip to content

Commit

Permalink
fix nightly build (followup a57066a)
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 21, 2014
1 parent 336fe99 commit 6c836f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/plugins/globe/osgEarthUtil/Controls.cpp
Expand Up @@ -1799,19 +1799,18 @@ ControlNodeBin::draw( const ControlContext& context, bool newContext, int bin )

if ( _sortingEnabled && _sortByDistance )
{
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); )
for( ControlNodeCollection::iterator i = _controlNodes.begin(); i != _controlNodes.end(); ++i )
{
ControlNode* node = i->second.get();
if ( node->getNumParents() == 0 )
{
_renderNodes.erase( node );
i = _controlNodes.erase( i );
_controlNodes.erase( i );
}
else
{
ControlNode::PerViewData& nodeData = node->getData( context._view );
byDepth.insert( ControlNodePair(nodeData._screenPos.z(), node) );
++i;
}
}

Expand Down

0 comments on commit 6c836f0

Please sign in to comment.