egl/android: Check return value of dri2_get_dri_config()
authorTomasz Figa <tfiga@chromium.org>
Fri, 15 Jul 2016 07:53:48 +0000 (16:53 +0900)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 20 Jul 2016 14:47:23 +0000 (15:47 +0100)
commit94282b6dd0e7c15030b09b6789a7aa5a15e8a869
treec1c27fb07d34cd3d85f6272c604df2246dedbe46
parent4f48674d51f03d8c954a89dfc49539a1dc750c4d
egl/android: Check return value of dri2_get_dri_config()

It might return NULL if specific config variant is unsupported.

Cc: "11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_android.c