From 0f2797fc07ac9f9378e9237ac6c6a851aab203f4 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 9 Jan 2008 11:42:19 +0000 Subject: [PATCH] From Mike Weiblen, build fix for VS8. --- include/osgDB/DatabasePager | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osgDB/DatabasePager b/include/osgDB/DatabasePager index 6c2802933..045850808 100644 --- a/include/osgDB/DatabasePager +++ b/include/osgDB/DatabasePager @@ -339,7 +339,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl // Is texture compiled for all active contexts? inline bool isCompiled(osg::Texture* texture) const { - for (ActiveGraphicsContexts::iterator iter=_activeGraphicsContexts.begin(); + for (ActiveGraphicsContexts::const_iterator iter=_activeGraphicsContexts.begin(); iter!=_activeGraphicsContexts.end(); ++iter ) { if ( texture->getTextureObject(*iter) == NULL ) return false; @@ -397,7 +397,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl { if (drawable->getUseDisplayList()) { - for (ActiveGraphicsContexts::iterator iter=_activeGraphicsContexts.begin(); + for (ActiveGraphicsContexts::const_iterator iter=_activeGraphicsContexts.begin(); iter!=_activeGraphicsContexts.end(); ++iter ) { if ( drawable->getDisplayList(*iter) == 0 ) return false;