summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>1999-12-10 15:16:49 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>1999-12-10 15:16:49 +0000
commite7d9d974712646fc41cde8d73e1fb3bf78655405 (patch)
tree0b9d234ea2be175e6c0f4329683ec3e58413ddaf /src/mesa
parentaaeea91bd045f5693d822085adf5322b022bd092 (diff)
added glXGetProcAddressARB()
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/x11/glxapi.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index 9446775433..2bbe879f95 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 <assert.h>
#include <stdlib.h>
+#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;
+}