summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>1999-09-16 16:47:35 +0000
committerBrian Paul <[email protected]>1999-09-16 16:47:35 +0000
commitdd4f70889464c9db132d75b3ab3cd3dbbdb9d3f2 (patch)
treef6adc264d00bfda0506727ff52988fca76864c44 /src/mesa
parent9df2b25af1e795620909497ae7f3553834161a3c (diff)
GL_EXT_get_proc_address clean-up
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/main/extensions.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 606a75c1df5..3130caccf85 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -1,4 +1,4 @@
-/* $Id: extensions.c,v 1.3 1999/09/11 11:48:11 brianp Exp $ */
+/* $Id: extensions.c,v 1.4 1999/09/16 16:47:35 brianp Exp $ */
/*
* Mesa 3-D graphics library
@@ -203,8 +203,7 @@ const char *gl_extensions_get_string( GLcontext *ctx )
* NOTE: this function could be optimized to binary search a sorted
* list of function names.
* Also, this function does not yet do per-context function searches.
- * But since the client must also call glGetString(GL_EXTENSIONS) to
- * test for the extension this isn't a big deal.
+ * Not applicable to Mesa at this time.
*/
GLfunction gl_GetProcAddress( GLcontext *ctx, const GLubyte *procName )
{
@@ -213,8 +212,9 @@ GLfunction gl_GetProcAddress( GLcontext *ctx, const GLubyte *procName )
GLfunction address;
};
static struct proc procTable[] = {
+#ifdef GL_EXT_get_proc_address
{ "glGetProcAddressEXT", (GLfunction) glGetProcAddressEXT }, /* me! */
-
+#endif
/* OpenGL 1.1 functions */
{ "glEnableClientState", (GLfunction) glEnableClientState },
{ "glDisableClientState", (GLfunction) glDisableClientState },
@@ -377,7 +377,7 @@ GLfunction gl_GetProcAddress( GLcontext *ctx, const GLubyte *procName )
for (i = 0; procTable[i].address; i++) {
if (strcmp((const char *) procName, procTable[i].name) == 0)
- return procTable[i].address;
+ return procTable[i].address;
}
return NULL;