From 648f603c35670d3f2724f09c3ff73503bc3d843c Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sun, 22 Apr 2018 16:48:15 +0200 Subject: [PATCH] egl: drop unused _EGLDriver from SetDamageRegion() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- src/egl/drivers/dri2/egl_dri2.c | 2 +- src/egl/main/eglapi.c | 2 +- src/egl/main/egldriver.h | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 0825e1c6541..7dc0720ed02 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -2050,7 +2050,7 @@ dri2_swap_buffers_region(_EGLDisplay *disp, _EGLSurface *surf, } static EGLBoolean -dri2_set_damage_region(const _EGLDriver *drv, _EGLDisplay *disp, _EGLSurface *surf, +dri2_set_damage_region(_EGLDisplay *disp, _EGLSurface *surf, EGLint *rects, EGLint n_rects) { struct dri2_egl_display *dri2_dpy = dri2_egl_display(disp); diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 229e7860dea..604bbf787dd 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1456,7 +1456,7 @@ eglSetDamageRegionKHR(EGLDisplay dpy, EGLSurface surface, RETURN_EGL_ERROR(disp, EGL_BAD_ACCESS, EGL_FALSE); _eglSetDamageRegionKHRClampRects(disp, surf, rects, n_rects); - ret = drv->SetDamageRegion(drv, disp, surf, rects, n_rects); + ret = drv->SetDamageRegion(disp, surf, rects, n_rects); if (ret) surf->SetDamageRegionCalled = EGL_TRUE; diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index 9a8f1db8450..e6ceb4bc846 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -120,8 +120,8 @@ struct _egl_driver EGLBoolean (*SwapBuffers)(_EGLDisplay *disp, _EGLSurface *draw); EGLBoolean (*CopyBuffers)(_EGLDisplay *disp, _EGLSurface *surface, void *native_pixmap_target); - EGLBoolean (*SetDamageRegion)(const _EGLDriver *drv, _EGLDisplay *disp, - _EGLSurface *surface, EGLint *rects, EGLint n_rects); + EGLBoolean (*SetDamageRegion)(_EGLDisplay *disp, _EGLSurface *surface, + EGLint *rects, EGLint n_rects); /* misc functions */ EGLBoolean (*WaitClient)(const _EGLDriver *drv, _EGLDisplay *disp, -- 2.30.2