mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-29 14:30:10 +01:00
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:
parent
f0b987646a
commit
5ade4b10e2
1 changed files with 4 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue