mesa: fix _glxapi_get_proc_address() for mangled names

(cherry picked from commit 7399d56ec6)
This commit is contained in:
Tom Fogal 2009-02-23 08:20:38 -07:00 committed by Ian Romanick
parent 0fea05915a
commit e814b5ae2f

View file

@ -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;