diff --git a/src/osg/Drawable.cpp b/src/osg/Drawable.cpp index 708ed51d8..ab1a551bd 100644 --- a/src/osg/Drawable.cpp +++ b/src/osg/Drawable.cpp @@ -202,8 +202,8 @@ void Drawable::flushDeletedDisplayLists(uint contextID) DeletedDisplayListCache::iterator citr = s_deletedDisplayListCache.find(contextID); if (citr!=s_deletedDisplayListCache.end()) { - std::set& displayListSet = citr->second; - for(std::set::iterator gitr=displayListSet.begin(); + std::set& displayListSet = citr->second; + for(std::set::iterator gitr=displayListSet.begin(); gitr!=displayListSet.end(); ++gitr) { diff --git a/src/osgSim/Makefile b/src/osgSim/Makefile index 5d4d6aa35..c088b97b0 100644 --- a/src/osgSim/Makefile +++ b/src/osgSim/Makefile @@ -12,7 +12,7 @@ CXXFILES = \ DEF += -DOSGSIM_LIBRARY -LIBS += -losg $(GL_LIBS) $(OTHER_LIBS) +LIBS += -losg -losgUtil $(GL_LIBS) $(OTHER_LIBS) TARGET_BASENAME = osgSim LIB = $(LIB_PREFIX)$(TARGET_BASENAME).$(LIB_EXT)