Added missing setUseVertexBufferObject().

This commit is contained in:
Robert Osfield
2003-07-05 19:49:06 +00:00
parent 4c576770fb
commit 639fc547d5

View File

@@ -261,6 +261,21 @@ void Drawable::setUseDisplayList(bool flag)
}
void Drawable::setUseVertexBufferObjects(bool flag)
{
// if value unchanged simply return.
if (_useVertexBufferObjects==flag) return;
// if was previously set to true, remove display list.
if (_useVertexBufferObjects)
{
dirtyDisplayList();
}
_useVertexBufferObjects = flag;
}
void Drawable::dirtyDisplayList()
{
unsigned int i;