summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2008-05-30 14:51:40 -0600
committerBrian Paul <[email protected]>2008-05-30 14:51:40 -0600
commit3c4162ed2afe4da252d2a32c14e486515935ba39 (patch)
treec6893ac8da93edda8961a05a250a7bfef27e137f
parente3805cad0d15ed25ce8f6c5a1f1ea913e5d0986a (diff)
egl: eglGetProcAddress() stub
-rw-r--r--src/gallium/winsys/egl_xlib/egl_xlib.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/winsys/egl_xlib/egl_xlib.c b/src/gallium/winsys/egl_xlib/egl_xlib.c
index 1458f83c02d..99389970f55 100644
--- a/src/gallium/winsys/egl_xlib/egl_xlib.c
+++ b/src/gallium/winsys/egl_xlib/egl_xlib.c
@@ -176,6 +176,17 @@ xlib_eglTerminate(_EGLDriver *drv, EGLDisplay dpy)
}
+static _EGLProc
+xlib_eglGetProcAddress(const char *procname)
+{
+ /* XXX for each supported API, evaluate GetProcAddress(name) */
+ /*
+ return _glapi_get_proc_address(procname);
+ */
+ return NULL;
+}
+
+
static void
get_drawable_visual_info(Display *dpy, Drawable d, XVisualInfo *visInfo)
{
@@ -525,6 +536,7 @@ _eglMain(_EGLDisplay *dpy, const char *args)
_eglInitDriverFallbacks(&xdrv->Base);
xdrv->Base.API.Initialize = xlib_eglInitialize;
xdrv->Base.API.Terminate = xlib_eglTerminate;
+ xdrv->Base.API.GetProcAddress = xlib_eglGetProcAddress;
xdrv->Base.API.CreateContext = xlib_eglCreateContext;
xdrv->Base.API.DestroyContext = xlib_eglDestroyContext;
xdrv->Base.API.CreateWindowSurface = xlib_eglCreateWindowSurface;