diff options
author | Kyle Brenneman <[email protected]> | 2015-09-28 11:59:22 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-02 13:23:18 +0100 |
commit | 798f260a2f553e339d7f5fc5120bb627893dc740 (patch) | |
tree | 308547400f727e21a3186fcc9ae0cb61fe3cd819 /src/mapi/mapi_glapi.c | |
parent | a27f2d991b1723c3349623401ce3c8f26dcdb28b (diff) |
mapi: Make _glapi_get_stub work with "gl" or "mgl" prefix.
When USE_MGL_NAMESPACE is defined, _glapi_get_stub will check for the "m"
prefix before trying to skip it, so that "glFoo" and "mglFoo" are
equivalent.
This should let it work with all the places where something calls
_glapi_get_proc_offset with a hard-coded name that starts with the normal
"gl" prefix.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=55552
Signed-off-by: Kyle Brenneman <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Cc: "10.6 11.0" <[email protected]>
Diffstat (limited to 'src/mapi/mapi_glapi.c')
-rw-r--r-- | src/mapi/mapi_glapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapi/mapi_glapi.c b/src/mapi/mapi_glapi.c index 70605f3dfa1..9f02edb7cd3 100644 --- a/src/mapi/mapi_glapi.c +++ b/src/mapi/mapi_glapi.c @@ -175,7 +175,7 @@ _glapi_get_stub(const char *name, int generate) const struct mapi_stub *stub; #ifdef USE_MGL_NAMESPACE - if (name) + if (name && name[0] == 'm') name++; #endif |