From: Brian Paul Date: Sat, 21 Feb 2009 23:07:52 +0000 (-0700) Subject: glapi: update find_entry() for mangled names X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4447fddc82a2c0245e798c90492293d875d186d0;p=mesa.git glapi: update find_entry() for mangled names --- diff --git a/src/mesa/glapi/glapi_getproc.c b/src/mesa/glapi/glapi_getproc.c index 6d40b495c7e..1238c4cf931 100644 --- a/src/mesa/glapi/glapi_getproc.c +++ b/src/mesa/glapi/glapi_getproc.c @@ -87,7 +87,13 @@ find_entry( const char * n ) GLuint i; for (i = 0; static_functions[i].Name_offset >= 0; i++) { const char *testName = gl_string_table + static_functions[i].Name_offset; - if (strcmp(testName, n) == 0) { +#ifdef MANGLE + /* skip the "m" prefix on the name */ + if (strcmp(testName, n + 1) == 0) +#else + if (strcmp(testName, n) == 0) +#endif + { return &static_functions[i]; } }