diff options
author | George Sapountzis <[email protected]> | 2010-03-09 22:03:24 +0200 |
---|---|---|
committer | George Sapountzis <[email protected]> | 2010-03-09 22:04:51 +0200 |
commit | 20ed2445b3b98f2b49a26ad4b45859a908583311 (patch) | |
tree | 7bc49d4a23f7f226383ea7ec3381dbc62a44ba48 /src/mesa/glapi | |
parent | 54ba95a4de749de1da73b3917aac99eb1d57d7fa (diff) |
glapi: allow for any mangle prefix
Diffstat (limited to 'src/mesa/glapi')
-rw-r--r-- | src/mesa/glapi/glapi_getproc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/glapi/glapi_getproc.c b/src/mesa/glapi/glapi_getproc.c index bd930b875d8..46b466920b6 100644 --- a/src/mesa/glapi/glapi_getproc.c +++ b/src/mesa/glapi/glapi_getproc.c @@ -63,7 +63,7 @@ find_entry( const char * n ) for (i = 0; static_functions[i].Name_offset >= 0; i++) { const char *testName = gl_string_table + static_functions[i].Name_offset; #ifdef MANGLE - /* skip the "m" prefix on the name */ + /* skip the prefix on the name */ if (strcmp(testName, n + 1) == 0) #else if (strcmp(testName, n) == 0) @@ -424,7 +424,8 @@ _glapi_get_proc_address(const char *funcName) GLuint i; #ifdef MANGLE - if (funcName[0] != 'm' || funcName[1] != 'g' || funcName[2] != 'l') + /* skip the prefix on the name */ + if (funcName[1] != 'g' || funcName[2] != 'l') return NULL; #else if (funcName[0] != 'g' || funcName[1] != 'l') |