From 8a0d11b44fa595b97ff0c27fc585bbcdfddbd84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EF=BC=AA=EF=BC=AF=EF=BC=A8=EF=BC=AE=E3=80=80=EF=BC=B6?= =?UTF-8?q?=EF=BC=B5?= Date: Sun, 18 May 2014 20:24:40 -0400 Subject: [PATCH] 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 --- spine-cocos2d-iphone/3.0/src/spine/PolygonBatch.m | 1 + 1 file changed, 1 insertion(+) diff --git a/spine-cocos2d-iphone/3.0/src/spine/PolygonBatch.m b/spine-cocos2d-iphone/3.0/src/spine/PolygonBatch.m index 0c9b7efc1..d66f6cb88 100644 --- a/spine-cocos2d-iphone/3.0/src/spine/PolygonBatch.m +++ b/spine-cocos2d-iphone/3.0/src/spine/PolygonBatch.m @@ -89,6 +89,7 @@ if (!_verticesCount) return; ccGLBindTexture2D(_texture.name); + ccGLBindVAO(0); glEnableVertexAttribArray(kCCVertexAttrib_Position); glEnableVertexAttribArray(kCCVertexAttrib_Color); glEnableVertexAttribArray(kCCVertexAttrib_TexCoords);