From 00935d9eab7336bd4bc43d11a2a4dc5930951ed0 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 19 Oct 2000 20:14:57 +0000 Subject: Rewrote get_static_proc_address(). It made mistakes in some situations --- src/mesa/glapi/glapi.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3