* commit '98838aa0836518b7397cbfe763f34305e3387a5f': Return back-end result from eglDestroyImageKHR
This commit is contained in:
commit
81b316aa53
@ -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;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user