mesa: use C99 initializer in get_gl_override()

The overrides array contains entries indexed on the gl_api enum.
Use a C99 initializer to make it a bit more obvious.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
This commit is contained in:
Emil Velikov 2018-08-24 14:05:57 +01:00 committed by Emil Velikov
parent f0b987646a
commit 5ade4b10e2

View file

@ -64,10 +64,10 @@ get_gl_override(gl_api api, int *version, bool *fwd_context,
bool fc_suffix;
bool compat_suffix;
} override[] = {
{ -1, false, false},
{ -1, false, false},
{ -1, false, false},
{ -1, false, false},
[API_OPENGL_COMPAT] = { -1, false, false},
[API_OPENGLES] = { -1, false, false},
[API_OPENGLES2] = { -1, false, false},
[API_OPENGL_CORE] = { -1, false, false},
};
STATIC_ASSERT(ARRAY_SIZE(override) == API_OPENGL_LAST + 1);