From 5605798e56ca6e9f968623f33b58ee7ca90594af Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Mon, 10 Apr 2000 21:13:19 +0000 Subject: added glXGetFBConfigs(), fixed glXChooseFBConfig() --- src/mesa/drivers/x11/glxapi.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/mesa/drivers/x11/glxapi.c') diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c index ffdfe65ac0..93e5808ddb 100644 --- a/src/mesa/drivers/x11/glxapi.c +++ b/src/mesa/drivers/x11/glxapi.c @@ -1,4 +1,4 @@ -/* $Id: glxapi.c,v 1.15 2000/02/27 18:26:54 brianp Exp $ */ +/* $Id: glxapi.c,v 1.16 2000/04/10 21:13:19 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -359,7 +359,7 @@ Display *glXGetCurrentDisplay(void) #ifdef _GLXAPI_VERSION_1_3 -GLXFBConfig glXChooseFBConfig(Display *dpy, int screen, const int *attribList, int *nitems) +GLXFBConfig *glXChooseFBConfig(Display *dpy, int screen, const int *attribList, int *nitems) { struct _glxapi_table *t = get_dispatch(dpy); if (!t) @@ -446,6 +446,14 @@ int glXGetFBConfigAttrib(Display *dpy, GLXFBConfig config, int attribute, int *v } +GLXFBConfig *glXGetFBConfigs(Display *dpy, int screen, int *nelements) +{ + struct _glxapi_table *t = get_dispatch(dpy); + if (!t) + return 0; + return (t->GetFBConfigs)(dpy, screen, nelements); +} + void glXGetSelectedEvent(Display *dpy, GLXDrawable drawable, unsigned long *mask) { struct _glxapi_table *t = get_dispatch(dpy); -- cgit v1.2.3