diff options
author | Kyle Brenneman <[email protected]> | 2015-09-28 11:59:22 -0600 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2015-10-07 14:48:41 +0100 |
commit | de936892dbcc4af0aa2b9abc98dc1d92b9dd64f3 (patch) | |
tree | eb50c886c3aa6a9538247bd42bc6431c0ee7223b /src | |
parent | b2a04cfcc2fcb22ebb2df9116ec5f210a1bf0344 (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]>
(cherry picked from commit 798f260a2f553e339d7f5fc5120bb627893dc740)
Diffstat (limited to 'src')
-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 |