glapi: fix _glapi_get_proc_address() for mangled function names
authorFrederic Devernay <frederic.devernay@m4x.org>
Mon, 25 Apr 2016 16:39:43 +0000 (10:39 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 25 Apr 2016 18:59:29 +0000 (12:59 -0600)
commit23949cdf2c85637448d9df0b0b4be647ac722b3a
tree99a8cb4005048257818d0eeb70d6bd2d3aec1c10
parent63df017fda72e0e165f622eac529c6889ae220d9
glapi: fix _glapi_get_proc_address() for mangled function names

In the dispatch table, all functions are stored without the "m" prefix.
Modify code so that OSMesaGetProcAddress works both with gl and mgl
prefixes. Similar to
https://lists.freedesktop.org/archives/mesa-dev/2015-September/095251.html

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94994
Cc: "11.1 11.2" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mapi/glapi/glapi_getproc.c