egl: drop unused _EGLDriver from GetProcAddress()
authorEric Engestrom <eric@engestrom.ch>
Sun, 22 Apr 2018 14:48:15 +0000 (16:48 +0200)
committerMarge Bot <eric+marge@anholt.net>
Sun, 16 Aug 2020 13:49:18 +0000 (13:49 +0000)
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6241>

src/egl/drivers/dri2/egl_dri2.c
src/egl/main/egldriver.c
src/egl/main/egldriver.h

index abf4c15f9e69243b4d6dc0546ea03b88df098987..400c62232968d8a207f53c4db6bab035ff62fb05 100644 (file)
@@ -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);
 }
index b5d9c9652e665e7d0e31d88d4ff3b6f252e27e42..987b4b333ea3b2abfa60c38105a49991bb757e61 100644 (file)
@@ -85,7 +85,7 @@ __eglMustCastToProperFunctionPointerType
 _eglGetDriverProc(const char *procname)
 {
    if (_eglDriver.GetProcAddress)
-      return _eglDriver.GetProcAddress(&_eglDriver, procname);
+      return _eglDriver.GetProcAddress(procname);
 
    return NULL;
 }
index 03757da780b9762ab99809ae391e42d26d062dc5..3f66490d5b88d1487cd1e5266d527ae9088a45e5 100644 (file)
@@ -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,