Added missing unbinds of VBO and EBO's to Geometry::drawImplementation(..), fixing crash in osganimationtimeline when stats were enabled

This commit is contained in:
Robert Osfield
2009-10-23 17:27:54 +00:00
parent a7cb28b166
commit 2ca76844cc

View File

@@ -1166,6 +1166,10 @@ void Geometry::drawImplementation(RenderInfo& renderInfo) const
}
}
}
// unbind the VBO's if any are used.
state.unbindVertexBufferObject();
state.unbindElementBufferObject();
}
class AttributeFunctorArrayVisitor : public ArrayVisitor