-/* $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
#include <assert.h>
#include <stdlib.h>
+#include "glapi.h"
#include "glxapi.h"
{ "glXSet3DfxModeMESA", (GLvoid *) glXSet3DfxModeMESA },
#endif
+ { "glXGetProcAddressARB", (GLvoid *) glXGetProcAddressARB },
+
{ NULL, NULL } /* end of list */
};
}
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;
+}