Skip to content

Commit

Permalink
Merge "Return back-end result from eglDestroyImageKHR"
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelflinger authored and Gerrit Code Review committed Sep 24, 2012
2 parents 8a2b542 + 646a5c5 commit 77af25b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions opengl/libs/EGL/eglApi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

// ----------------------------------------------------------------------------
Expand Down

0 comments on commit 77af25b

Please sign in to comment.