egl/android: fix error in droid_add_configs_for_visuals()
authorTapani Pälli <tapani.palli@intel.com>
Mon, 17 Oct 2016 06:04:56 +0000 (09:04 +0300)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 17 Oct 2016 10:51:15 +0000 (11:51 +0100)
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>
src/egl/drivers/dri2/platform_android.c

index 6a4122a8cc9d2fe8cac056c4b2ed45875a22610f..6a110e2c9c727ee711bcd52cab290613dde9f439 100644 (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;