bind VAO 0 to clear the current vao context

reference to post on cocos2d forums: http://forum.cocos2d-iphone.org/t/spine-runtime-for-3-0-problems/13504
This commit is contained in:
JOHN VU 2014-05-18 20:24:40 -04:00
parent 790a46868b
commit 8a0d11b44f

View File

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