Merge pull request #8643 from huangshiwu/v3_fixDrawNodebug

fix DrawNode's memory leak -- delete vaos those are generated and forget...
This commit is contained in:
minggo 2014-10-11 17:31:17 +08:00
commit b144eb345a
1 changed files with 2 additions and 0 deletions

View File

@ -147,6 +147,8 @@ DrawNode::~DrawNode()
if (Configuration::getInstance()->supportsShareableVAO())
{
glDeleteVertexArrays(1, &_vao);
glDeleteVertexArrays(1, &_vaoGLLine);
glDeleteVertexArrays(1, &_vaoGLPoint);
GL::bindVAO(0);
_vao = 0;
}