summaryrefslogtreecommitdiffstats
path: root/src/glu
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-09-16 16:53:28 +0000
committerBrian Paul <[email protected]>1999-09-16 16:53:28 +0000
commit978b089aee3a0f910563f159ade30708bc3566e9 (patch)
tree3515e03d5f278c9adf56db0552776c0f1df92c56 /src/glu
parentdd4f70889464c9db132d75b3ab3cd3dbbdb9d3f2 (diff)
clean-up of GLU_EXT_get_proc_address
Diffstat (limited to 'src/glu')
-rw-r--r--src/glu/mesa/glu.c25
1 files changed, 14 insertions, 11 deletions
diff --git a/src/glu/mesa/glu.c b/src/glu/mesa/glu.c
index 53ad0ff26f8..12cc98c8481 100644
--- a/src/glu/mesa/glu.c
+++ b/src/glu/mesa/glu.c
@@ -1,4 +1,4 @@
-/* $Id: glu.c,v 1.7 1999/09/14 00:11:40 brianp Exp $ */
+/* $Id: glu.c,v 1.8 1999/09/16 16:53:28 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -23,6 +23,9 @@
/*
* $Log: glu.c,v $
+ * Revision 1.8 1999/09/16 16:53:28 brianp
+ * clean-up of GLU_EXT_get_proc_address
+ *
* Revision 1.7 1999/09/14 00:11:40 brianp
* added gluCheckExtension()
*
@@ -357,24 +360,24 @@ const GLubyte* GLAPIENTRY gluGetString( GLenum name )
#ifdef GLU_EXT_get_proc_address
-GLfunction GLAPIENTRY gluGetProcAddressEXT( const GLubyte *procName )
+void GLAPIENTRY (*gluGetProcAddressEXT(const GLubyte *procName))()
{
struct proc {
const char *name;
- GLfunction address;
+ void *address;
};
static struct proc procTable[] = {
- { "gluGetProcAddressEXT", (GLfunction) gluGetProcAddressEXT }, /* me! */
+ { "gluGetProcAddressEXT", gluGetProcAddressEXT }, /* me! */
/* new 1.1 functions */
- { "gluGetString", (GLfunction) gluGetString },
+ { "gluGetString", gluGetString },
/* new 1.2 functions */
- { "gluTessBeginPolygon", (GLfunction) gluTessBeginPolygon },
- { "gluTessBeginContour", (GLfunction) gluTessBeginContour },
- { "gluTessEndContour", (GLfunction) gluTessEndContour },
- { "gluTessEndPolygon", (GLfunction) gluTessEndPolygon },
- { "gluGetTessProperty", (GLfunction) gluGetTessProperty },
+ { "gluTessBeginPolygon", gluTessBeginPolygon },
+ { "gluTessBeginContour", gluTessBeginContour },
+ { "gluTessEndContour", gluTessEndContour },
+ { "gluTessEndPolygon", gluTessEndPolygon },
+ { "gluGetTessProperty", gluGetTessProperty },
/* new 1.3 functions */
@@ -384,7 +387,7 @@ GLfunction GLAPIENTRY gluGetProcAddressEXT( const GLubyte *procName )
for (i = 0; procTable[i].address; i++) {
if (strcmp((const char *) procName, procTable[i].name) == 0)
- return procTable[i].address;
+ return (void (*)()) procTable[i].address;
}
return NULL;