diff options
author | Brian Paul <[email protected]> | 2000-10-19 20:13:12 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2000-10-19 20:13:12 +0000 |
commit | 9c7ca850fdc35afa75512db70d14a14ebf162d8c (patch) | |
tree | 5533a86912f0caeba14659d1a3503c459b4822d4 /src/mesa/glapi/glapi.c | |
parent | a5b66333fb1f6c60332d49be62cf15071a7b633a (diff) |
Rewrote get_static_proc_address(). It made mistakes in some situations
Diffstat (limited to 'src/mesa/glapi/glapi.c')
-rw-r--r-- | src/mesa/glapi/glapi.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index 9b01046ea35..e640f0c8f63 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -1,4 +1,4 @@ -/* $Id: glapi.c,v 1.45 2000/09/26 15:27:22 brianp Exp $ */ +/* $Id: glapi.c,v 1.46 2000/10/19 20:13:12 brianp Exp $ */ /* * Mesa 3-D graphics library @@ -1535,11 +1535,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; } |