glx/glvnd: Fix GLXdispatchIndex sorting
authorHans de Goede <hdegoede@redhat.com>
Mon, 6 Feb 2017 11:13:17 +0000 (12:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Wed, 15 Feb 2017 08:55:57 +0000 (09:55 +0100)
commit4c66f529a8ea4cc7589c1e3760894793c666e9b2
tree0778f4b2bd8954463ebbced0bc5780091ba47cd5
parentb4b19afebeac84ddce3f1f8b7ffe0da6474fe29a
glx/glvnd: Fix GLXdispatchIndex sorting

Commit 8bca8d89ef3b ("glx/glvnd: Fix dispatch function names and indices")
fixed the sorting of the array initializers in g_glxglvnddispatchfuncs.c
because FindGLXFunction's binary search needs these to be sorted
alphabetically.

That commit also mostly fixed the sorting of the DI_foo defines in
g_glxglvnddispatchindices.h, which is what actually matters as the
arrays are initialized using "[DI_foo] = glXfoo," but a small error
crept in which at least causes glXGetVisualFromFBConfigSGIX to not
resolve, breaking games such as "The Binding of Isaac: Rebirth" and
"Crypt of the NecroDancer" from Steam not working and possible causes
other problems too.

This commit fixes the last of the sorting errors, fixing these mentioned
games not working.

Fixes: 8bca8d89ef3b ("glx/glvnd: Fix dispatch function names and indices")
Cc: "13.0" <mesa-stable@lists.freedesktop.org>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Cc: Adam Jackson <ajax@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/glx/g_glxglvnddispatchindices.h