Fixed support for compiling VBO's

This commit is contained in:
Robert Osfield
2009-12-09 13:55:10 +00:00
parent 6e7c02b5d8
commit 5f61d14dc6
2 changed files with 13 additions and 4 deletions

View File

@@ -239,9 +239,8 @@ public:
//
// XXX This "compiles" VBOs too, but compilation doesn't do
// anything for VBOs, does it?
if (_dataToCompile && drawable->getUseDisplayList() && !_pager->isCompiled(drawable))
if (_dataToCompile && (drawable->getUseVertexBufferObjects() || drawable->getUseDisplayList()) && !_pager->isCompiled(drawable))
{
// osg::notify(osg::NOTICE)<<" Found compilable drawable"<<std::endl;
_dataToCompile->second.push_back(drawable);
}
}