diff options
author | Mathias Agopian <pixelflinger@gmail.com> | 2012-09-24 14:56:02 -0700 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2012-09-24 14:56:03 -0700 |
commit | 77af25b6dd41e76052b5b0ec6aaeebca896a4dbe (patch) | |
tree | f2b5c51b90fe20abf086c42d4449392da9b813cc | |
parent | 8a2b54235a45f92827b13723380065d1ce308236 (diff) | |
parent | 646a5c593f9819dc5da6a1ec859bc70cb7ba096f (diff) | |
download | native-77af25b6dd41e76052b5b0ec6aaeebca896a4dbe.tar.gz |
Merge "Return back-end result from eglDestroyImageKHR"
-rw-r--r-- | opengl/libs/EGL/eglApi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/opengl/libs/EGL/eglApi.cpp b/opengl/libs/EGL/eglApi.cpp index 1bc4eb776d..a1c6a7afb5 100644 --- a/opengl/libs/EGL/eglApi.cpp +++ b/opengl/libs/EGL/eglApi.cpp @@ -1110,11 +1110,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; } // ---------------------------------------------------------------------------- |