projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8344b85
)
mesa: fix _glxapi_get_proc_address() for mangled names
author
Tom Fogal
<tfogal@alumni.unh.edu>
Mon, 23 Feb 2009 15:20:38 +0000
(08:20 -0700)
committer
Brian Paul
<brianp@vmware.com>
Mon, 23 Feb 2009 15:20:38 +0000
(08:20 -0700)
src/mesa/drivers/x11/glxapi.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/x11/glxapi.c
b/src/mesa/drivers/x11/glxapi.c
index 19aca605bcec37a23df2f7f0d005611e862dc785..02eea25a7129a90aa616ddeae938b31af46db0fb 100644
(file)
--- a/
src/mesa/drivers/x11/glxapi.c
+++ b/
src/mesa/drivers/x11/glxapi.c
@@
-1375,7
+1375,12
@@
_glxapi_get_proc_address(const char *funcName)
{
GLuint i;
for (i = 0; GLX_functions[i].Name; i++) {
+#ifdef MANGLE
+ /* skip the "m" prefix on the name */
+ if (strcmp(GLX_functions[i].Name, funcName+1) == 0)
+#else
if (strcmp(GLX_functions[i].Name, funcName) == 0)
+#endif
return GLX_functions[i].Address;
}
return NULL;