cocos2d-x Sample - onResume

Hi All,

I have just come across cocos2d-x and I have say it looks great. I have been developing Android project for while now. I had no problem getting the sample application up and running, but when I came to extend it, the first thing I noticed is that it does not appear to resume properly, all I get is a black screen after screen unlock or switching back to it.

Does anyone know why this is happening?

After some more testing, i have noticed it does not always do it, but here is the debug I am getting.

07-27 09:32:31.592: D/cocos2d-x debug info(22845): OpenGL error 0x0501 in /home/liam/Development/cocos2d-x-2.1.4/Breakout/proj.android/…/…/cocos2dx/sprite_nodes/CCSprite.cpp draw 591
07-27 09:32:47.077: D/cocos2d-x debug info(22845): OpenGL error 0x0502 in /home/liam/Development/cocos2d-x-2.1.4/Breakout/proj.android/…/…/cocos2dx/textures/CCTextureAtlas.cpp drawNumberOfQuads 681

I will debug this further and report back while i extend the project.

This has something to do with the OpenGL context being lost I think.
Other people (including me) have this problem too :frowning: This thread may help:
http://www.cocos2d-x.org/boards/6/topics/27903

Thanks for the heads up, I’ll keep an eye on it.