From aa8499e69f782190baa6ba38f7cbc32258443401 Mon Sep 17 00:00:00 2001 From: James Gregory Date: Mon, 8 Apr 2013 19:16:22 -0700 Subject: [PATCH] Switch to slot-based GL buffer loading code for CCSprite. --- cocos2dx/sprite_nodes/CCSprite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos2dx/sprite_nodes/CCSprite.cpp b/cocos2dx/sprite_nodes/CCSprite.cpp index 3984e4ff1a..c4a0ca687a 100644 --- a/cocos2dx/sprite_nodes/CCSprite.cpp +++ b/cocos2dx/sprite_nodes/CCSprite.cpp @@ -572,7 +572,7 @@ void CCSprite::draw(void) #define kQuadSize sizeof(m_sQuad.bl) #ifdef EMSCRIPTEN long offset = 0; - setGLBufferData(&m_sQuad, 4 * kQuadSize); + setGLBufferData(&m_sQuad, 4 * kQuadSize, 0); #else long offset = (long)&m_sQuad; #endif // EMSCRIPTEN