Merge pull request #224 from kalo/cc2dv3.0

bind VAO 0 to clear the current vao context
This commit is contained in:
Nathan Sweet 2014-05-19 11:15:36 +02:00
commit efb778a9e3

View File

@ -89,6 +89,7 @@
if (!_verticesCount) return;
ccGLBindTexture2D(_texture.name);
ccGLBindVAO(0);
glEnableVertexAttribArray(kCCVertexAttrib_Position);
glEnableVertexAttribArray(kCCVertexAttrib_Color);
glEnableVertexAttribArray(kCCVertexAttrib_TexCoords);