am 81b316aa: am 98838aa0: am 77af25b6: Merge "Return back-end result from eglDestroyImageKHR"

* commit '81b316aa5395b6318ad4a10e1ed27d0b9b0df07f':
  Return back-end result from eglDestroyImageKHR
This commit is contained in:
Mathias Agopian 2012-09-24 15:45:56 -07:00 committed by Android Git Automerger
commit 68872cac38
1 changed files with 3 additions and 2 deletions

View File

@ -1112,11 +1112,12 @@ EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
const egl_display_ptr dp = validate_display(dpy);
if (!dp) return EGL_FALSE;
EGLBoolean result = EGL_FALSE;
egl_connection_t* const cnx = &gEGLImpl;
if (cnx->dso && cnx->egl.eglDestroyImageKHR) {
cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img);
result = cnx->egl.eglDestroyImageKHR(dp->disp.dpy, img);
}
return EGL_TRUE;
return result;
}
// ----------------------------------------------------------------------------