From e7d9d974712646fc41cde8d73e1fb3bf78655405 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 10 Dec 1999 15:16:49 +0000 Subject: [PATCH] added glXGetProcAddressARB() --- src/mesa/drivers/x11/glxapi.c | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c index 9446775433a..2bbe879f953 100644 --- a/src/mesa/drivers/x11/glxapi.c +++ b/src/mesa/drivers/x11/glxapi.c @@ -1,4 +1,4 @@ -/* $Id: glxapi.c,v 1.9 1999/11/28 20:18:50 brianp Exp $ */ +/* $Id: glxapi.c,v 1.10 1999/12/10 15:16:49 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -34,6 +34,7 @@ #include #include +#include "glapi.h" #include "glxapi.h" @@ -781,6 +782,8 @@ static struct name_address_pair GLX_functions[] = { { "glXSet3DfxModeMESA", (GLvoid *) glXSet3DfxModeMESA }, #endif + { "glXGetProcAddressARB", (GLvoid *) glXGetProcAddressARB }, + { NULL, NULL } /* end of list */ }; @@ -799,3 +802,23 @@ _glxapi_get_proc_address(const char *funcName) } return NULL; } + + + +/* + * This function does not get dispatched through the dispatch table + * since it's really a "meta" function. + */ +void (*glXGetProcAddressARB(const GLubyte *procName))() +{ + typedef void (*gl_function)(); + gl_function f; + + f = (gl_function) _glxapi_get_proc_address((const char *) procName); + if (f) { + return f; + } + + f = (gl_function) _glapi_get_proc_address((const char *) procName); + return f; +} -- 2.30.2