summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTom Fogal <[email protected]>2009-02-23 08:20:38 -0700
committerBrian Paul <[email protected]>2009-02-23 08:20:38 -0700
commit7399d56ec6019e00297eef57f802a53698baa8ad (patch)
treef98a894fb9662d1e1794e992e9a7ee7f945ad5ad /src/mesa
parent8344b85333df8c8eb1f2ca243129d29dcd0ed0dd (diff)
mesa: fix _glxapi_get_proc_address() for mangled names
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/x11/glxapi.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index 19aca605bce..02eea25a712 100644
--- 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;