Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fe562324 authored by Steven Holte's avatar Steven Holte Committed by Steve Kondik
Browse files

Return back-end result from eglDestroyImageKHR

Change-Id: I0e972b778f9802c28f52092bb9af087285833e0b
parent 752dedd6
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -1112,11 +1112,12 @@ EGLBoolean eglDestroyImageKHR(EGLDisplay dpy, EGLImageKHR img)
    const egl_display_ptr dp = validate_display(dpy);
    const egl_display_ptr dp = validate_display(dpy);
    if (!dp) return EGL_FALSE;
    if (!dp) return EGL_FALSE;


    EGLBoolean result = EGL_FALSE;
    egl_connection_t* const cnx = &gEGLImpl;
    egl_connection_t* const cnx = &gEGLImpl;
    if (cnx->dso && cnx->egl.eglDestroyImageKHR) {
    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;
}
}


// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------