diff options
author | Jesse Hall <jessehall@google.com> | 2015-10-14 20:26:57 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-14 20:26:57 +0000 |
commit | 0983618f0ad57b873163183eac6caf8dea7920c8 (patch) | |
tree | 16d4d66ba73cd933c4b5847d0a66740385e89c12 | |
parent | 5bba4236a86bbf4537bc27810803b9b224b0840f (diff) | |
parent | a518d5ad0c0c6a661471a8cd2c962612943ca667 (diff) | |
download | frameworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.zip frameworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.tar.gz frameworks_native-0983618f0ad57b873163183eac6caf8dea7920c8.tar.bz2 |
am a518d5ad: am 312d7555: egl: Remove window disconnect before calling driver eglDestroySurface
* commit 'a518d5ad0c0c6a661471a8cd2c962612943ca667':
egl: Remove window disconnect before calling driver eglDestroySurface
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 8378907..cdec565 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -595,15 +595,6 @@ EGLBoolean eglDestroySurface(EGLDisplay dpy, EGLSurface surface) return setError(EGL_BAD_SURFACE, EGL_FALSE); egl_surface_t * const s = get_surface(surface); - ANativeWindow* window = s->win.get(); - if (window) { - int result = native_window_api_disconnect(window, NATIVE_WINDOW_API_EGL); - if (result != OK) { - ALOGE("eglDestroySurface: native_window_api_disconnect (win=%p) " - "failed (%#x)", - window, result); - } - } EGLBoolean result = s->cnx->egl.eglDestroySurface(dp->disp.dpy, s->surface); if (result == EGL_TRUE) { _s.terminate(); |