mirror of https://github.com/axmolengine/axmol.git
Switch to slot-based GL buffer loading code for CCSprite.
This commit is contained in:
parent
a072cb590a
commit
aa8499e69f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue