Added a Geometry::compileGLObjects() to handle compilation of VBO + EBO's.

This commit is contained in:
Robert Osfield
2009-12-09 13:51:02 +00:00
parent 268f11c522
commit 6e7c02b5d8
4 changed files with 79 additions and 16 deletions

View File

@@ -465,18 +465,6 @@ void Drawable::dirtyBound()
void Drawable::compileGLObjects(RenderInfo& renderInfo) const
{
bool useVertexArrays = _supportsVertexBufferObjects && _useVertexBufferObjects && renderInfo.getState()->isVertexBufferObjectSupported();
if (useVertexArrays)
{
if (_drawCallback.valid())
_drawCallback->drawImplementation(renderInfo,this);
else
drawImplementation(renderInfo);
return;
}
if (!_useDisplayList) return;
#ifdef OSG_GL_DISPLAYLISTS_AVAILABLE