projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da46db6
)
glapi: update find_entry() for mangled names
author
Brian Paul
<brianp@vmware.com>
Sat, 21 Feb 2009 23:07:52 +0000
(16:07 -0700)
committer
Brian Paul
<brianp@vmware.com>
Sat, 21 Feb 2009 23:07:52 +0000
(16:07 -0700)
src/mesa/glapi/glapi_getproc.c
patch
|
blob
|
history
diff --git
a/src/mesa/glapi/glapi_getproc.c
b/src/mesa/glapi/glapi_getproc.c
index 6d40b495c7e71424d264bcba09d354c67e556a21..1238c4cf9311b12c974a0a65cee92ad4bc32c0fe 100644
(file)
--- 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];
}
}