diff --git a/cocos/2d/CCDrawNode.cpp b/cocos/2d/CCDrawNode.cpp index b2af1dda71..eae022bea6 100644 --- a/cocos/2d/CCDrawNode.cpp +++ b/cocos/2d/CCDrawNode.cpp @@ -147,6 +147,8 @@ DrawNode::~DrawNode() if (Configuration::getInstance()->supportsShareableVAO()) { glDeleteVertexArrays(1, &_vao); + glDeleteVertexArrays(1, &_vaoGLLine); + glDeleteVertexArrays(1, &_vaoGLPoint); GL::bindVAO(0); _vao = 0; }