summaryrefslogtreecommitdiff
path: root/src/mesa/glapi
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2000-10-19 20:14:57 +0000
committerBrian Paul <brian.paul@tungstengraphics.com>2000-10-19 20:14:57 +0000
commit00935d9eab7336bd4bc43d11a2a4dc5930951ed0 (patch)
tree427a9b843ee7f924f82e8b0a8706fbe9d3db1e09 /src/mesa/glapi
parentc8c04359ddce9ac6cd2436d3e2904d21c32f8d23 (diff)
Rewrote get_static_proc_address(). It made mistakes in some situations
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r--src/mesa/glapi/glapi.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c
index 9c40ce8e4de..80220fff142 100644
--- a/src/mesa/glapi/glapi.c
+++ b/src/mesa/glapi/glapi.c
@@ -1,8 +1,8 @@
-/* $Id: glapi.c,v 1.42 2000/05/24 17:53:30 brianp Exp $ */
+/* $Id: glapi.c,v 1.42.4.1 2000/10/19 20:14:57 brianp Exp $ */
/*
* Mesa 3-D graphics library
- * Version: 3.3
+ * Version: 3.4
*
* Copyright (C) 1999-2000 Brian Paul All Rights Reserved.
*
@@ -1479,11 +1479,13 @@ get_static_proc_offset(const char *funcName)
static GLvoid *
get_static_proc_address(const char *funcName)
{
- GLint i = get_static_proc_offset(funcName);
- if (i >= 0)
- return static_functions[i].Address;
- else
- return NULL;
+ GLint i;
+ for (i = 0; static_functions[i].Name; i++) {
+ if (strcmp(static_functions[i].Name, funcName) == 0) {
+ return static_functions[i].Address;
+ }
+ }
+ return NULL;
}