mirror of https://github.com/axmolengine/axmol.git
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:
commit
b144eb345a
|
@ -147,6 +147,8 @@ DrawNode::~DrawNode()
|
|||
if (Configuration::getInstance()->supportsShareableVAO())
|
||||
{
|
||||
glDeleteVertexArrays(1, &_vao);
|
||||
glDeleteVertexArrays(1, &_vaoGLLine);
|
||||
glDeleteVertexArrays(1, &_vaoGLPoint);
|
||||
GL::bindVAO(0);
|
||||
_vao = 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue