From: Tapani Pälli Date: Mon, 17 Oct 2016 06:04:56 +0000 (+0300) Subject: egl/android: fix error in droid_add_configs_for_visuals() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3d48353e299c1f6ab4dc331c70074fe69dbfcc6d;p=mesa.git 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 Fixes: acd35c8758dc73240903 ("egl/android: tweak droid_add_configs_for_visuals()") Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov --- diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c index 6a4122a8cc9..6a110e2c9c7 100644 --- a/src/egl/drivers/dri2/platform_android.c +++ b/src/egl/drivers/dri2/platform_android.c @@ -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;