From 1c2726fd077bf8ce421b07360eebc65db56f2b52 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 12 Dec 2007 09:45:29 +0000 Subject: [PATCH] From Paul Martz, "Function declaration returns a bool, function body was returning a pointer. Changed body to return (pointer != NULL)." --- include/osgDB/DatabasePager | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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