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)
.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,
.CreatePbufferSurface = haiku_create_pbuffer_surface,
.DestroySurface = haiku_destroy_surface,
.SwapBuffers = haiku_swap_buffers,
- .GetProcAddress = _glapi_get_proc_address,
};
.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,
#include <stdlib.h>
#include <string.h>
#include "c11/threads.h"
+#include "mapi/glapi/glapi.h"
#include "util/u_debug.h"
#include "util/macros.h"
#include "util/perf/cpu_trace.h"
ret = entrypoint->function;
}
- if (!ret && _eglDriver.GetProcAddress)
- ret = _eglDriver.GetProcAddress(procname);
+ if (!ret)
+ ret = _glapi_get_proc_address(procname);
RETURN_EGL_SUCCESS(NULL, ret);
}
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,