diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index 0ebc46ee845..ff17f027f54 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/src/egl/drivers/dri2/egl_dri2.c @@ -1758,15 +1758,6 @@ dri2_surface_get_dri_drawable(_EGLSurface *surf) return dri2_surf->dri_drawable; } -/* - * Called from eglGetProcAddress() via drv->GetProcAddress(). - */ -static _EGLProc -dri2_get_proc_address(const char *procname) -{ - return _glapi_get_proc_address(procname); -} - static _EGLSurface* dri2_create_window_surface(_EGLDisplay *disp, _EGLConfig *conf, void *native_window, const EGLint *attrib_list) @@ -3673,7 +3664,6 @@ const _EGLDriver _eglDriver = { .CreatePixmapSurface = dri2_create_pixmap_surface, .CreatePbufferSurface = dri2_create_pbuffer_surface, .DestroySurface = dri2_destroy_surface, - .GetProcAddress = dri2_get_proc_address, .WaitClient = dri2_wait_client, .WaitNative = dri2_wait_native, .BindTexImage = dri2_bind_tex_image, diff --git a/src/egl/drivers/haiku/egl_haiku.cpp b/src/egl/drivers/haiku/egl_haiku.cpp index 3069c7edb42..f75eace6a05 100644 --- a/src/egl/drivers/haiku/egl_haiku.cpp +++ b/src/egl/drivers/haiku/egl_haiku.cpp @@ -517,5 +517,4 @@ const _EGLDriver _eglDriver = { .CreatePbufferSurface = haiku_create_pbuffer_surface, .DestroySurface = haiku_destroy_surface, .SwapBuffers = haiku_swap_buffers, - .GetProcAddress = _glapi_get_proc_address, }; diff --git a/src/egl/drivers/wgl/egl_wgl.c b/src/egl/drivers/wgl/egl_wgl.c index a06574aa07b..7de0e00d7c9 100644 --- a/src/egl/drivers/wgl/egl_wgl.c +++ b/src/egl/drivers/wgl/egl_wgl.c @@ -1179,7 +1179,6 @@ struct _egl_driver _eglDriver = { .QuerySurface = wgl_query_surface, .BindTexImage = wgl_bind_tex_image, .ReleaseTexImage = _eglReleaseTexImage, - .GetProcAddress = _glapi_get_proc_address, .SwapInterval = wgl_swap_interval, .SwapBuffers = wgl_swap_buffers, .WaitClient = wgl_wait_client, diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index f65a9a9d39d..019a2afeb1f 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -94,6 +94,7 @@ #include #include #include "c11/threads.h" +#include "mapi/glapi/glapi.h" #include "util/u_debug.h" #include "util/macros.h" #include "util/perf/cpu_trace.h" @@ -2885,8 +2886,8 @@ eglGetProcAddress(const char *procname) ret = entrypoint->function; } - if (!ret && _eglDriver.GetProcAddress) - ret = _eglDriver.GetProcAddress(procname); + if (!ret) + ret = _glapi_get_proc_address(procname); RETURN_EGL_SUCCESS(NULL, ret); } diff --git a/src/egl/main/egldriver.h b/src/egl/main/egldriver.h index da2281e76ba..6a1b2e1dd29 100644 --- a/src/egl/main/egldriver.h +++ b/src/egl/main/egldriver.h @@ -125,9 +125,6 @@ struct _egl_driver EGLBoolean (*WaitClient)(_EGLDisplay *disp, _EGLContext *ctx); EGLBoolean (*WaitNative)(EGLint engine); - /* this function may be called from multiple threads at the same time */ - _EGLProc (*GetProcAddress)(const char *procname); - /* for EGL_KHR_image_base */ _EGLImage *(*CreateImageKHR)(_EGLDisplay *disp, _EGLContext *ctx, EGLenum target, EGLClientBuffer buffer,