OSDN Git Service

mapi: Make _glapi_get_stub work with "gl" or "mgl" prefix.
authorKyle Brenneman <kbrenneman@nvidia.com>
Mon, 28 Sep 2015 17:59:22 +0000 (11:59 -0600)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 7 Oct 2015 13:48:41 +0000 (14:48 +0100)
commitde936892dbcc4af0aa2b9abc98dc1d92b9dd64f3
treeeb50c886c3aa6a9538247bd42bc6431c0ee7223b
parentb2a04cfcc2fcb22ebb2df9116ec5f210a1bf0344
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 <kbrenneman@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Cc: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
(cherry picked from commit 798f260a2f553e339d7f5fc5120bb627893dc740)
src/mapi/mapi_glapi.c