New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The program crashes after launch. EXC_BAD_ACCESS error!!! #1
Comments
i just checked my cocos2d-x 2.2. i found i had made several bug fix to it.
#if CC_REBIND_INDICES_BUFFER #if CC_TEXTURE_ATLAS_USE_TRIANGLE_STRIP #if CC_REBIND_INDICES_BUFFER
// glBindVertexArray(0); #else // ! CC_TEXTURE_ATLAS_USE_VAO |
Cool! |
glad to hear that:) |
working nice! |
My cocos2d-x version is v2.2 and I followed your instructions step by step.
It's easy to get all stuff build and run. But after launching, it crashes.
Here is the crash code line:
CCTextureAtlas.cpp line 636.
glDrawElements(GL_TRIANGLES, (GLsizei) n_6, GL_UNSIGNED_SHORT, (GLvoid_) (start_6_sizeof(m_pIndices[0])) );
The Xcode gives me EXC_BAD_ACCESS at the above line.
It seems the memory of n data was unintentional freed before this code line was executed.
The text was updated successfully, but these errors were encountered: