cocos2d-x-2.2.0: CCSprite texture glitches after turning display off and on again

Hello,

after turning screen off and on again some of my sprites display wrong textures (or black ones). I don’t purge any textures, CCTextureCache::reloadAllTextures() is called in nativeInit.

Does anybody got same problems and maybe help me how to fix it?

Thanks in advance!

Not the best solution, but at least a solution.

called CCTextureCache::reloadAllTextures() again in a function scheduled in AppDelegate::applicationWillEnterForeground (e.g. scheduleOnce on currect scene) so texture are loaded in render thread instead…works!