cocos2d/cocos2d-x — pull request #3144 by jllust (2013-07-13 02:56:05+00:00)
Title: Fix Issue #2354

Once a Texture Atlas VAO has deallocated by glDeleteVertexArrays. The GLStateCache may have been recently set to that vaoID. When shortly after a new glGenVertexArrays gets the same vaoID but the glBindVertexArray is bypassed because of the GLStateCache is not aware the VAO was just invalidated, and new vertex are copied to the old freed address.