From a7d15d2ae3a6b0cbf6770ae50eff58ec2dd506e1 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 GetProcAddress() 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/egldriver.c | 2 +- src/egl/main/egldriver.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index abf4c15f9e6..400c6223296 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1898,7 +1898,7 @@ dri2_surface_get_dri_drawable(_EGLSurface *surf) * Called from eglGetProcAddress() via drv->GetProcAddress(). */ static _EGLProc -dri2_get_proc_address(const _EGLDriver *drv, const char *procname) +dri2_get_proc_address(const char *procname) { return _glapi_get_proc_address(procname); } diff --git a/src/egl/main/egldriver.c b/src/egl/main/egldriver.c index b5d9c9652e6..987b4b333ea 100644 --- a/src/egl/main/egldriver.c +++ b/src/egl/main/egldriver.c @@ -85,7 +85,7 @@ __eglMustCastToProperFunctionPointerType _eglGetDriverProc(const char *procname) { if (_eglDriver.GetProcAddress) - return _eglDriver.GetProcAddress(&_eglDriver, procname); + return _eglDriver.GetProcAddress(procname); return NULL; } diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index 03757da780b..3f66490d5b8 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -128,7 +128,7 @@ struct _egl_driver EGLBoolean (*WaitNative)(EGLint engine); /* this function may be called from multiple threads at the same time */ - _EGLProc (*GetProcAddress)(const _EGLDriver *drv, const char *procname); + _EGLProc (*GetProcAddress)(const char *procname); _EGLImage *(*CreateImageKHR)(const _EGLDriver *drv, _EGLDisplay *disp, _EGLContext *ctx, EGLenum target, -- 2.30.2