diff options
author | Emil Velikov <[email protected]> | 2018-08-24 14:05:57 +0100 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2018-10-03 13:38:05 +0100 |
commit | 5ade4b10e2d2729da3fccf415be486ccc79e1fa2 (patch) | |
tree | 2fbb4024a346d3f19a3d65e4ca7e96c4430388cb /src/mesa/main/version.c | |
parent | f0b987646acf215f4f653832cf333ca16a05cdcf (diff) |
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 <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Diffstat (limited to 'src/mesa/main/version.c')
-rw-r--r-- | src/mesa/main/version.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 77ff51b6d9e..610ba2f08c5 100644 --- a/src/mesa/main/version.c +++ b/src/mesa/main/version.c @@ -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); |