Mesa (gallium-mesa-7.4): mesa: fix _glxapi_get_proc_address() for mangled names

Alan Hourihane alanh at kemper.freedesktop.org
Thu Mar 26 17:36:06 UTC 2009


Module: Mesa
Branch: gallium-mesa-7.4
Commit: e814b5ae2f51ba16d5e840d428526bba6feb53e8
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=e814b5ae2f51ba16d5e840d428526bba6feb53e8

Author: Tom Fogal <tfogal at alumni.unh.edu>
Date:   Mon Feb 23 08:20:38 2009 -0700

mesa: fix _glxapi_get_proc_address() for mangled names
(cherry picked from commit 7399d56ec6019e00297eef57f802a53698baa8ad)

---

 src/mesa/drivers/x11/glxapi.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/x11/glxapi.c b/src/mesa/drivers/x11/glxapi.c
index c2ccce6..083788d 100644
--- a/src/mesa/drivers/x11/glxapi.c
+++ b/src/mesa/drivers/x11/glxapi.c
@@ -1374,7 +1374,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;




More information about the mesa-commit mailing list