From 195ad58494e7b0c936610afc56d0d9bcedf63923 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 26 Sep 2008 10:59:28 +0000 Subject: [PATCH] From Lionel Lagarde, "Here is a correction on DatabasePager::FindCompileableGLObjectsVisitor The apply(osg::Drawable *) method doesn't update the _drawableSet and the isCompiled test was inversed." --- src/osgDB/DatabasePager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/osgDB/DatabasePager.cpp b/src/osgDB/DatabasePager.cpp index 029773e95..8a5e8786f 100644 --- a/src/osgDB/DatabasePager.cpp +++ b/src/osgDB/DatabasePager.cpp @@ -200,6 +200,8 @@ public: { if (_drawableSet.count(drawable)) return; + + _drawableSet.insert(drawable); apply(drawable->getStateSet()); @@ -229,7 +231,7 @@ public: // // XXX This "compiles" VBOs too, but compilation doesn't do // anything for VBOs, does it? - if (drawable->getUseDisplayList() && _pager->isCompiled(drawable)) + if (drawable->getUseDisplayList() && !_pager->isCompiled(drawable)) { // osg::notify(osg::NOTICE)<<" Found compilable drawable"<