egl/android: fix error in droid_add_configs_for_visuals()

This was some kind of leftover in commit acd35c8 and format_count
array variable (declared in outer scope) should be used instead.

Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Fixes: acd35c8758 ("egl/android: tweak droid_add_configs_for_visuals()")
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
This commit is contained in:
Tapani Pälli 2016-10-17 09:04:56 +03:00 committed by Emil Velikov
parent 74d145f4a8
commit 3d48353e29
1 changed files with 0 additions and 2 deletions

View File

@ -787,8 +787,6 @@ droid_add_configs_for_visuals(_EGLDriver *drv, _EGLDisplay *dpy)
continue;
for (j = 0; j < ARRAY_SIZE(visuals); j++) {
int format_count = 0;
config_attrs[1] = visuals[j].format;
config_attrs[3] = visuals[j].format;