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

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -