From: Eric Engestrom Date: Sun, 22 Apr 2018 14:48:15 +0000 (+0200) Subject: egl: drop unused _EGLDriver from GetProcAddress() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a7d15d2ae3a6b0cbf6770ae50eff58ec2dd506e1;p=mesa.git egl: drop unused _EGLDriver from GetProcAddress() Signed-off-by: Eric Engestrom Reviewed-by: Marek Olšák Part-of: --- 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,