From Mike Weiblen, build fix for VS8.

This commit is contained in:
Robert Osfield 2008-01-09 11:42:19 +00:00
parent ea8ceb734d
commit 0f2797fc07

View File

@ -339,7 +339,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
// Is texture compiled for all active contexts? // Is texture compiled for all active contexts?
inline bool isCompiled(osg::Texture* texture) const inline bool isCompiled(osg::Texture* texture) const
{ {
for (ActiveGraphicsContexts::iterator iter=_activeGraphicsContexts.begin(); for (ActiveGraphicsContexts::const_iterator iter=_activeGraphicsContexts.begin();
iter!=_activeGraphicsContexts.end(); ++iter ) iter!=_activeGraphicsContexts.end(); ++iter )
{ {
if ( texture->getTextureObject(*iter) == NULL ) return false; if ( texture->getTextureObject(*iter) == NULL ) return false;
@ -397,7 +397,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl
{ {
if (drawable->getUseDisplayList()) if (drawable->getUseDisplayList())
{ {
for (ActiveGraphicsContexts::iterator iter=_activeGraphicsContexts.begin(); for (ActiveGraphicsContexts::const_iterator iter=_activeGraphicsContexts.begin();
iter!=_activeGraphicsContexts.end(); ++iter ) iter!=_activeGraphicsContexts.end(); ++iter )
{ {
if ( drawable->getDisplayList(*iter) == 0 ) return false; if ( drawable->getDisplayList(*iter) == 0 ) return false;