egl: properly count configs
authorEric Engestrom <eric@engestrom.ch>
Wed, 21 Jun 2017 20:55:56 +0000 (21:55 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 22 Jun 2017 16:32:31 +0000 (17:32 +0100)
commitc87f73724efbec493d0149738d3a7ea11bfab222
tree67c217abb9430daa4fd9eabd0f669c9f561acc73
parent5e884353e647261ac815c85724fc108e86dd1d85
egl: properly count configs

dri2_conf represents another config (which shouldn't be counted)
if it doesn't have the requested ID.

Reported-by: Liu Zhiquan <zhiquan.liu@intel.com>
Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_surfaceless.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c