mesa: fix _glxapi_get_proc_address() for mangled names

This commit is contained in:
Tom Fogal 2009-02-23 08:20:38 -07:00 committed by Brian Paul
parent 8344b85333
commit 7399d56ec6
1 changed files with 5 additions and 0 deletions

View File

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