I've committed a spine-cocos2d-iphone runtime for cocos2d-iphone version 3.0:
https://github.com/EsotericSoftware/spi ... iphone/3.0
However, it is broken and not ready for use.
It compiles but when run crashes on glDrawElements
, here with EXC_BAD_ACCESS
. Using CHECK_GL_ERROR_DEBUG
it seems the first glVertexAttribPointer
fails with GL_INVALID_OPERATION, 0x0502
. Also of note is that the crash happens on the second frame that is rendered. The values passed to the functions seem to be correct. I have roughly the same code working with cocos2d v2.1.0 and cocos2d-x v2, 3.0 and 3.1 but something doesn't seem to play nice with cocos2d v3.0. Maybe there is some GL state that happens during the first render that I need to watch out for? Any other ideas?
Cross posted on the cocos2d-iphone forum.
Got it solved on the cocos2d forum. Was bad GL state after the first frame. spine-cocos2d-iphone for 3.0 is done!