I am learning about OpenGL and managed to write a prototype game using VBO buffers. If I start the application from Eclipse or adb, everything works fine until I press the back or <Home> button. If I restart the application either by a long press on <HOME> and selecting my program or by restarting it from the applications, I sometimes get a black screen and the LogCat shows this error:
D/AIRDEFENDER( 966): onResume() D/SurfaceFlinger( 64): pid 966 requesting gpu surface (current owner = -1) D/SurfaceFlinger( 64): gpu surface granted to pid 966 D/SurfaceFlinger( 64): pid 127 requesting gpu core (owner = 966) D/SurfaceFlinger( 64): pid 966 requesting gpu surface (current owner = 127) D/EGL ( 127): CONTEXT_LOST: Releasing GPU upon request from SurfaceFlinger. D/EGL.oem ( 127): SMI region at virtual=0x46e10000, physical=0x0, size=7340032 offset=0 D/EGL.oem ( 127): EBI1 region at virtual=0x47510000, physical=0x25800000, size=8388608 offset=1228800 D/EGL.oem ( 127): REGS region at virtual=0x46d10000, physical=0xa0000000, size=1048576, offset=0 E/GLLogger( 127): 0: eglInitialize() failed (EGL_CONTEXT_LOST) W/InputManagerService( 64): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub $pr...@437e7108 D/SurfaceFlinger( 64): gpu surface granted to pid 966 E/SurfaceComposerClient( 966): using an invalid surface id=1, identity=65 should be 70 E/GLLogger( 966): validate_display_surface:488 error 300d (EGL_BAD_SURFACE) I am aware that it is probably a wrong setting in my program's flow, but I am not fluently enough with OpenGL. So if anybody has any idea and could point me to the correct direction to look for the problem, I would appreciate it. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---