Switch to slot-based GL buffer loading code for CCSprite.

This commit is contained in:
James Gregory 2013-04-08 19:16:22 -07:00
parent a072cb590a
commit aa8499e69f
1 changed files with 1 additions and 1 deletions

View File

@ -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