I’ve found another bug the thing is, VolatileTexture::reloadAllTextures() works great, but it does not reapply the GL texture options after reloading the textures!
So every time when you set the texture params in your game (using the Cocos2d-x API, not using GL), switch to the home screen or another app and back into the Cocos2d-x app, all the textures that were being repeated, linear or nearest filtered, etc. look out of place because the GL texture settings are totally gone. No more nice background patterns and the user will be afraid that something went wrong with the device
This happens because CCTexture2D::initWithData calls setAntiAliasTexParameters. But setAntiAliasTexParameters doesn’t take into account the requested texture parameter settings. CCTexture2D::setTexParameters does not save these options either.
I’ve fixed it by saving the params inside VolatileTexture and calling setTexParameters at VolatileTexture::reloadAllTextures. Would’ve provided a patch, but I’m still not sure how to use this Git-thing the right way. Should really figure that out some day.
Anyway, it’s easy to fix