diff options
author | Steven Holte <sholte@nvidia.com> | 2012-06-04 20:02:11 -0700 |
---|---|---|
committer | Michael Chock <mchock@nvidia.com> | 2012-09-12 15:14:55 -0700 |
commit | 646a5c593f9819dc5da6a1ec859bc70cb7ba096f (patch) | |
tree | 7f2825fd611fbd8a291232934a679f054bf98010 /opengl/libs/EGL/eglApi.cpp | |
parent | d7007cd4bb2016a09ae8e8f746118f81fdd27f02 (diff) | |
download | frameworks_native-646a5c593f9819dc5da6a1ec859bc70cb7ba096f.zip frameworks_native-646a5c593f9819dc5da6a1ec859bc70cb7ba096f.tar.gz frameworks_native-646a5c593f9819dc5da6a1ec859bc70cb7ba096f.tar.bz2 |
Return back-end result from eglDestroyImageKHR
Change-Id: I0e972b778f9802c28f52092bb9af087285833e0b
Diffstat (limited to 'opengl/libs/EGL/eglApi.cpp')
-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 1bc4eb7..a1c6a7a 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; } // ---------------------------------------------------------------------------- |