egl/wayland: check for invalid format index
authorEric Engestrom <eric.engestrom@imgtec.com>
Thu, 15 Feb 2018 11:10:22 +0000 (11:10 +0000)
committerEric Engestrom <eric.engestrom@imgtec.com>
Fri, 16 Feb 2018 13:14:29 +0000 (13:14 +0000)
commit65dda6c9ec1d80ee36c8bff157f49d97baffebce
tree1fb71e8e03a195e24541e6b9206dc1d49129b335
parenta176b053b6f956db14becd981795e3adad969a13
egl/wayland: check for invalid format index

v2: just tell the compiler to assume the format will always be found, as
it comes from the table itself to begin with. (DanielS)

CID: 1429516
Fixes: d32b23f3830099a328b91 "egl/wayland: Add bpp to visual map"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/platform_wayland.c