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

Popular posts from this blog

haskell - Using filter on an item in a list? -

c# - When does PreApplicationStartMethod actually get triggered to run? -

tomcat6 - Exception when stopping container for a with Spring + Quartz + Tomcat web application -