I’ve got a problem on setTexture because when i put the application in background and resume it the texture becomes lines in place of staying like the original sprites.
Have you any ideas about how to fix it?
You generated texture by yourself, so you should reload them as engine did after OpenGL context lost.
You can refer CCTextureCache::addImage(), which caches file path, and HelloWorld/android/jni/helloworld/main.cpp, which reloads texture.
I tried to use your tips, but i continue to have this error again.
The thing is in the main i’m using reloadAllTexture, and at the construction of my sprite i’m using CCTextureCache::addImage and setTexture on the sprite but after i don’t know what to do when i resume the game?