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."
This commit is contained in:
parent
bce664dcab
commit
195ad58494
@ -201,6 +201,8 @@ public:
|
||||
if (_drawableSet.count(drawable))
|
||||
return;
|
||||
|
||||
_drawableSet.insert(drawable);
|
||||
|
||||
apply(drawable->getStateSet());
|
||||
|
||||
switch(_drawablePolicy)
|
||||
@ -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"<<std::endl;
|
||||
_dataToCompile.second.push_back(drawable);
|
||||
|
Loading…
Reference in New Issue
Block a user