I m developing a game in And engine which throws the exception. Actually I don\'t know the point where exceptions occurs. It is reported in market many many time.
In my experience (which is specific to my Samsung Note, and no other Android device I've tested so far), is that EGL_BAD_ALLOC
will be incorrectly produced by eglSwapBuffers()
instead of EGL_BAD_CURRENT_SURFACE
. If your code handles re-creating the surface, it should be trivial to handle this obscure case as well.