I have an Android activity using a texture with dynamic content (drawn into via Framebuffer / Renderbuffer).
When the activity is paused / resumed, the texture (like all textures) is lost and must be recreated.
Is there a way to save the content of the dynamic texture into some persistent object on pause and recreate the texture from this object on resume?
I already found some threads describing hack-like ways to prevent the textures from being invalidated on pause, but if possible I'd like to do it "by the book" and free the texture memory on pause / recreate textures on resume.