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>
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);