summaryrefslogtreecommitdiff
path: root/src/mesa
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2009-02-21 16:07:52 -0700
committerBrian Paul <brianp@vmware.com>2009-02-21 16:07:52 -0700
commit4447fddc82a2c0245e798c90492293d875d186d0 (patch)
tree2d68c5d10596d6d86e477df63ed4b29ee8225a5d /src/mesa
parentda46db60a04da87da1277b4316e30bfe4b2c7d8a (diff)
glapi: update find_entry() for mangled names
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/glapi/glapi_getproc.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mesa/glapi/glapi_getproc.c b/src/mesa/glapi/glapi_getproc.c
index 6d40b495c7..1238c4cf93 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];
}
}