diff options
author | Jesse Hall <jessehall@google.com> | 2015-10-14 20:14:55 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-10-14 20:14:55 +0000 |
commit | a518d5ad0c0c6a661471a8cd2c962612943ca667 (patch) | |
tree | 16d4d66ba73cd933c4b5847d0a66740385e89c12 | |
parent | 76fc5f18e6a0271a1f04db54924653faac73912e (diff) | |
parent | 312d7555cb71ce7fb73bc758b9e30653e223b2f3 (diff) | |
download | frameworks_native-a518d5ad0c0c6a661471a8cd2c962612943ca667.zip frameworks_native-a518d5ad0c0c6a661471a8cd2c962612943ca667.tar.gz frameworks_native-a518d5ad0c0c6a661471a8cd2c962612943ca667.tar.bz2 |
am 312d7555: egl: Remove window disconnect before calling driver eglDestroySurface
* commit '312d7555cb71ce7fb73bc758b9e30653e223b2f3':
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(); |