Return back-end result from eglDestroyImageKHR

Change-Id: I0e972b778f9802c28f52092bb9af087285833e0b
This commit is contained in:
Steven Holte 2012-06-04 20:02:11 -07:00 committed by Michael Chock
parent d7007cd4bb
commit 646a5c593f
1 changed files with 3 additions and 2 deletions

View File

@ -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;
}
// ----------------------------------------------------------------------------