eglSwapBuffers failed: EGL_BAD_ALLOC AndEngine Android

后端 未结 2 1068
小蘑菇
小蘑菇 2021-02-10 09:28

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.



        
2条回答
  •  旧时难觅i
    2021-02-10 10:10

    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.

提交回复
热议问题