summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2016-10-17 09:04:56 +0300
committerEmil Velikov <emil.l.velikov@gmail.com>2016-10-17 11:51:15 +0100
commit3d48353e299c1f6ab4dc331c70074fe69dbfcc6d (patch)
tree12b2cb04fa7554afd2c9b14c12d3812ced81a2b7 /src/egl
parent74d145f4a8ec42c3bf03b95fa0bf0fc34eee47d2 (diff)
downloadexternal_mesa3d-3d48353e299c1f6ab4dc331c70074fe69dbfcc6d.zip
external_mesa3d-3d48353e299c1f6ab4dc331c70074fe69dbfcc6d.tar.gz
external_mesa3d-3d48353e299c1f6ab4dc331c70074fe69dbfcc6d.tar.bz2
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: acd35c8758dc73240903 ("egl/android: tweak droid_add_configs_for_visuals()") Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/drivers/dri2/platform_android.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/egl/drivers/dri2/platform_android.c b/src/egl/drivers/dri2/platform_android.c
index 6a4122a..6a110e2 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;