summaryrefslogtreecommitdiffstats
path: root/opengl
diff options
context:
space:
mode:
authorJack Palevich <jackpal@google.com>2012-03-22 11:46:32 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-03-22 11:46:32 -0700
commit2ffead9cf2cb57d21929c354e547a428b8be54d2 (patch)
tree5527bbef26846c73b85387a0d082b5ab702f7abb /opengl
parent370f2dbc372116f986274ff2552b5ecfdce7d29a (diff)
parent48a59c3d852867f13da4138ed2de94044febb99e (diff)
downloadframeworks_base-2ffead9cf2cb57d21929c354e547a428b8be54d2.zip
frameworks_base-2ffead9cf2cb57d21929c354e547a428b8be54d2.tar.gz
frameworks_base-2ffead9cf2cb57d21929c354e547a428b8be54d2.tar.bz2
Merge "Ignore EGL_BAD_CURRENT_SURFACE errors from eglSwapBuffers"
Diffstat (limited to 'opengl')
-rw-r--r--opengl/java/android/opengl/GLSurfaceView.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/opengl/java/android/opengl/GLSurfaceView.java b/opengl/java/android/opengl/GLSurfaceView.java
index 8e2294c..d9501a2 100644
--- a/opengl/java/android/opengl/GLSurfaceView.java
+++ b/opengl/java/android/opengl/GLSurfaceView.java
@@ -1145,11 +1145,15 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
switch(error) {
case EGL11.EGL_CONTEXT_LOST:
return false;
+ case EGL10.EGL_BAD_CURRENT_SURFACE:
+ // The current surface is bad, probably because the window manager has closed
+ // the associated window. Ignore this error, on the assumption that the
+ // application will be closed soon.
+ break;
case EGL10.EGL_BAD_NATIVE_WINDOW:
- // The native window is bad, probably because the
- // window manager has closed it. Ignore this error,
- // on the expectation that the application will be closed soon.
- Log.e("EglHelper", "eglSwapBuffers returned EGL_BAD_NATIVE_WINDOW. tid=" + Thread.currentThread().getId());
+ // The native window is bad, probably because the window manager has closed it.
+ // Ignore this error, on the assumption that the application will be closed
+ // soon.
break;
default:
throwEglException("eglSwapBuffers", error);