diff --git a/include/osgDB/DatabasePager b/include/osgDB/DatabasePager index a8965386e..7b80955a1 100644 --- a/include/osgDB/DatabasePager +++ b/include/osgDB/DatabasePager @@ -334,7 +334,7 @@ class OSGDB_EXPORT DatabasePager : public osg::NodeVisitor::DatabaseRequestHandl inline static bool isCompiled(const osg::Texture* texture, unsigned int contextID) { - return texture->getTextureObject(contextID); + return( texture->getTextureObject(contextID) != NULL ); } // Is texture compiled for all active contexts? inline bool isCompiled(osg::Texture* texture) const