Losing OpenGL Textures in Android after a resume -
my game working correctly except in case press home button resume. needs done use textures again? have tried calling onpause , onresume on glsurfaceview (when activity's onpause , onresume called).
any ideas doing wrong?
if else fails, reload textures:
pseudocode
for tex in textures: if glistexture(tex.opengl_name) == false: glgentextures(1, &tex.opengl_name) glbindtexture(tex.texture_target); glteximage(..., texture.image);
Comments
Post a Comment