mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-02 12:18:09 +02:00
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:
parent
54f619fb9b
commit
f12fcb1c9d
1 changed files with 7 additions and 8 deletions
|
|
@ -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",
|
||||
};
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue