egl: eglGetProcAddress() stub
authorBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 20:51:40 +0000 (14:51 -0600)
committerBrian Paul <brian.paul@tungstengraphics.com>
Fri, 30 May 2008 20:51:40 +0000 (14:51 -0600)
src/gallium/winsys/egl_xlib/egl_xlib.c

index 1458f83c02d9797bd4663106c51b68cdd12f99ae..99389970f55d4a3780ddaf473bf1fe51965ef0c8 100644 (file)
@@ -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;