egl: use designated initializers

All the compilers used to build Mesa support them.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Chad Versace <chadversary@chromium.org>
This commit is contained in:
Emil Velikov 2017-03-31 12:08:38 +01:00 committed by Emil Velikov
parent 54f619fb9b
commit f12fcb1c9d

View file

@ -72,17 +72,16 @@ static struct {
EGLBoolean initialized;
EGLint level;
} logging = {
_MTX_INITIALIZER_NP,
EGL_FALSE,
FALLBACK_LOG_LEVEL,
.mutex = _MTX_INITIALIZER_NP,
.initialized = EGL_FALSE,
.level = FALLBACK_LOG_LEVEL,
};
static const char *level_strings[] = {
/* the order is important */
"fatal",
"warning",
"info",
"debug",
[_EGL_FATAL] = "fatal",
[_EGL_WARNING] = "warning",
[_EGL_INFO] = "info",
[_EGL_DEBUG] = "debug",
};