Has this error been fixed?
Žygis Buzzy wrote:
Has this error been fixed?
Error is not fixed
Here is the problem:
#if CC_USES_VBO
glEnable(GL_VERTEX_ARRAY);
// create the VBO buffer
glGenBuffers(1, &m_uQuadsID);
// initial binding
glBindBuffer(GL_ARRAY_BUFFER, m_uQuadsID);
glBufferData(GL_ARRAY_BUFFER, sizeof(m_pQuads[0])*m_uTotalParticles, m_pQuads, GL_DYNAMIC_DRAW);
glBindBuffer(GL_ARRAY_BUFFER, 0);
#endif
#if CC_USES_VBO
glDeleteBuffers(1, &m_uQuadsID);
#endif
If you correct #define CC_USES_VBO 1 to #define CC_USES_VBO 0 in ccConfig.h, this bug will not appear.
In CCParticleSystemQuad
change
glEnable(GL_VERTEX_ARRAY);
to
glEnableClientState(GL_VERTEX_ARRAY);
cocos2dx - 1.0.12
in iOS simulator it’s reproduced more often when the simulator window is back