mirror of https://github.com/axmolengine/axmol.git
More client side buffer fixes.
This commit is contained in:
parent
8a9586fd9d
commit
19f6c7978b
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue