mirror of https://github.com/axmolengine/axmol.git
More client side buffer fixes.
This commit is contained in:
parent
303c5a0ab0
commit
f613dd713b
|
@ -170,7 +170,12 @@ void CCControlSwitchSprite::draw()
|
||||||
glUniform1i(m_uMaskLocation, 1);
|
glUniform1i(m_uMaskLocation, 1);
|
||||||
|
|
||||||
#define kQuadSize sizeof(m_sQuad.bl)
|
#define kQuadSize sizeof(m_sQuad.bl)
|
||||||
|
#ifdef EMSCRIPTEN
|
||||||
|
long offset = 0;
|
||||||
|
setGLBufferData(&m_sQuad, 4 * kQuadSize, 0);
|
||||||
|
#else
|
||||||
long offset = (long)&m_sQuad;
|
long offset = (long)&m_sQuad;
|
||||||
|
#endif // EMSCRIPTEN
|
||||||
|
|
||||||
// vertex
|
// vertex
|
||||||
int diff = offsetof( ccV3F_C4B_T2F, vertices);
|
int diff = offsetof( ccV3F_C4B_T2F, vertices);
|
||||||
|
|
Loading…
Reference in New Issue