More client side buffer fixes.

This commit is contained in:
James Gregory 2013-04-08 21:09:09 -07:00
parent 8a9586fd9d
commit 19f6c7978b
1 changed files with 5 additions and 0 deletions

View File

@ -170,7 +170,12 @@ void CCControlSwitchSprite::draw()
glUniform1i(m_uMaskLocation, 1);
#define kQuadSize sizeof(m_sQuad.bl)
#ifdef EMSCRIPTEN
long offset = 0;
setGLBufferData(&m_sQuad, 4 * kQuadSize, 0);
#else
long offset = (long)&m_sQuad;
#endif // EMSCRIPTEN
// vertex
int diff = offsetof( ccV3F_C4B_T2F, vertices);