Merge pull request #10138 from dabingnn/v3_fixcrashForTextureAtlas

fix crash for textureAtlas
This commit is contained in:
minggo 2015-01-21 15:02:06 +08:00
commit 97f29adf84
1 changed files with 3 additions and 1 deletions

View File

@ -643,6 +643,8 @@ void TextureAtlas::drawNumberOfQuads(ssize_t numberOfQuads, ssize_t start)
glDrawElements(GL_TRIANGLES, (GLsizei) numberOfQuads*6, GL_UNSIGNED_SHORT, (GLvoid*) (start*6*sizeof(_indices[0])) );
GL::bindVAO(0);
#if CC_REBIND_INDICES_BUFFER
glBindBuffer(GL_ELEMENT_ARRAY_BUFFER, 0);
#endif