egl: drop unused _EGLDriver from GetProcAddress()

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>
This commit is contained in:
Eric Engestrom
2018-04-22 16:48:15 +02:00
committed by Marge Bot
parent b8d1c4647f
commit a7d15d2ae3
3 changed files with 3 additions and 3 deletions
+1 -1
View 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);
}
+1 -1
View File
@@ -85,7 +85,7 @@ __eglMustCastToProperFunctionPointerType
_eglGetDriverProc(const char *procname)
{
if (_eglDriver.GetProcAddress)
return _eglDriver.GetProcAddress(&_eglDriver, procname);
return _eglDriver.GetProcAddress(procname);
return NULL;
}
+1 -1
View 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,