egl/surfaceless: use correct index when accesing the visual
authorEmil Velikov <emil.velikov@collabora.com>
Fri, 14 Oct 2016 20:42:00 +0000 (21:42 +0100)
committerChad Versace <chadversary@chromium.org>
Sun, 16 Oct 2016 16:03:27 +0000 (09:03 -0700)
commitd19b014b774450741f02935fe84208f4889d3800
tree935306058bbf05eca2f93d387cc783bbeb57caac
parent36cb5508e891bd50308d3dffcf6f4a6fa73bbf2e
egl/surfaceless: use correct index when accesing the visual

i is used for the driver_configs, while j is for the visuals.

Fixes: 4b8a55809eb ("egl/surfaceless: tweak surfaceless_add_configs_for_visuals()")
Reported-by: Chad Versace <chadversary@chromium.org>
Tested-by: Chad Versace <chadversary@chromium.org>
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
src/egl/drivers/dri2/platform_surfaceless.c