mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 20:48:08 +02:00
eg: explicitly size dri2_to_egl_attribute_map[]
This way we'll get an implicit zero initialization of the remaining
members, as required by dri2_add_config().
Fixes: e5efaeb85c ("egl: polish dri2_to_egl_attribute_map[]")
Cc: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
parent
2c60bf093e
commit
b6643095ba
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ const __DRIuseInvalidateExtension use_invalidate = {
|
|||
.base = { __DRI_USE_INVALIDATE, 1 }
|
||||
};
|
||||
|
||||
static const EGLint dri2_to_egl_attribute_map[] = {
|
||||
static const EGLint dri2_to_egl_attribute_map[__DRI_ATTRIB_MAX] = {
|
||||
[__DRI_ATTRIB_BUFFER_SIZE ] = EGL_BUFFER_SIZE,
|
||||
[__DRI_ATTRIB_LEVEL] = EGL_LEVEL,
|
||||
[__DRI_ATTRIB_RED_SIZE] = EGL_RED_SIZE,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue