diff options
author | Brian Paul <[email protected]> | 2004-04-23 20:33:07 +0000 |
---|---|---|
committer | Brian Paul <[email protected]> | 2004-04-23 20:33:07 +0000 |
commit | f7b4e0d376359cdbf365337b060127100c41c4d5 (patch) | |
tree | 962d641f5c5df329935c054bce5ad515fa76426f /src/mesa | |
parent | e946688edac5cdf153652defae3ef732a3487416 (diff) |
minor fixes for entrypoint name mangling
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/glapi/glapi.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/glapi/glapi.c b/src/mesa/glapi/glapi.c index eff86f42bef..aa915834339 100644 --- a/src/mesa/glapi/glapi.c +++ b/src/mesa/glapi/glapi.c @@ -653,8 +653,13 @@ GLboolean _glapi_add_entrypoint(const char *funcName, GLuint offset) { /* trivial rejection test */ +#ifdef MANGLE + if (!funcName || funcName[0] != 'm' || funcName[1] != 'g' || funcName[2] != 'l') + return NULL; +#else if (!funcName || funcName[0] != 'g' || funcName[1] != 'l') return GL_FALSE; +#endif /* first check if the named function is already statically present */ { @@ -742,8 +747,13 @@ _glapi_get_proc_address(const char *funcName) { GLuint i; +#ifdef MANGLE + if (funcName[0] != 'm' || funcName[1] != 'g' || funcName[2] != 'l') + return NULL; +#else if (funcName[0] != 'g' || funcName[1] != 'l') return NULL; +#endif /* search extension functions first */ for (i = 0; i < NumExtEntryPoints; i++) { |