Permalink
Browse files

Merge pull request #488 from fzurita/crash_on_exit_fix

Crash on exit fix
  • Loading branch information...
xperia64 committed Oct 17, 2015
2 parents e22bc85 + bbdc04d commit 045a4fbfb28fa3ca0e4924ea67f87f7917eab57a
Showing with 9 additions and 2 deletions.
  1. +9 −2 src/paulscode/android/mupen64plusae/game/GameSurface.java
@@ -215,8 +215,15 @@ public boolean isEGLContextReady()
*/
public void flipBuffers()
{
- // Uncomment the next line only for debugging; otherwise don't waste the time
- mEgl.eglSwapBuffers( mEglDisplay, mEglSurface );
+ try
+ {
+ // Uncomment the next line only for debugging; otherwise don't waste the time
+ mEgl.eglSwapBuffers( mEglDisplay, mEglSurface );
+ }
+ catch(IllegalArgumentException e)
+ {
+ Log.e("GameSurface", "Exception thrown in flipBuffers, message: " + e.getMessage());
+ }
}
/**

0 comments on commit 045a4fb

Please sign in to comment.