summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMathias Agopian <pixelflinger@gmail.com>2012-09-24 14:56:02 -0700
committerGerrit Code Review <noreply-gerritcodereview@google.com>2012-09-24 14:56:03 -0700
commit77af25b6dd41e76052b5b0ec6aaeebca896a4dbe (patch)
treef2b5c51b90fe20abf086c42d4449392da9b813cc
parent8a2b54235a45f92827b13723380065d1ce308236 (diff)
parent646a5c593f9819dc5da6a1ec859bc70cb7ba096f (diff)
downloadnative-77af25b6dd41e76052b5b0ec6aaeebca896a4dbe.tar.gz
Merge "Return back-end result from eglDestroyImageKHR"
-rw-r--r--opengl/libs/EGL/eglApi.cpp5
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;
}
// ----------------------------------------------------------------------------