From c01ed02147870235f9513894c40ad6cf2325a3be Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 17 Dec 2008 16:58:23 +0000 Subject: [PATCH] Fixed inactive PagedLOD removal code --- src/osgDB/DatabasePager.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 8488da927..2b29b6a9a 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -1690,10 +1690,7 @@ void DatabasePager::capped_removeExpiredSubgraphs(const osg::FrameStamp& frameSt ++numRemoved; - PagedLODList::iterator itr_to_erase = itr; - ++itr; - - _activePagedLODList.erase(itr_to_erase); + itr = pagedLODList.erase(itr); } }