egl/x11: attribute for dri2_add_config failure
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 25 Aug 2016 14:24:44 +0000 (15:24 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 14 Oct 2016 11:53:39 +0000 (12:53 +0100)
commitd81ba763e38b726054dca5b59671ffa0166461b4
tree35d719f29a5fa5591dac88c8fccd5f1520cfd50b
parent0b2b7191214eb77c5720a40231a6f2d28da63027
egl/x11: attribute for dri2_add_config failure

... in dri2_x11_add_configs_for_visuals().

Currently the latter does not consider that, thus in such cases it adds
"empty" configs in the list.

Properly account for things and as we do that we can reuse count,
instead of calling _eglGetArraySize to determine if we've added any
configs.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/egl/drivers/dri2/platform_x11.c