[Mesa-dev] [PATCH] egl/android: fix error in droid_add_configs_for_visuals()
Eric Engestrom
eric.engestrom at imgtec.com
Mon Oct 17 10:40:49 UTC 2016
On Monday, 2016-10-17 09:04:56 +0300, Tapani Pälli wrote:
> 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 at intel.com>
Fixes: acd35c8758dc73240903 ("egl/android: tweak droid_add_configs_for_visuals()")
Reviewed-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
> src/egl/drivers/dri2/platform_android.c | 2 --
> 1 file changed, 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;
>
> --
> 2.7.4
More information about the mesa-dev
mailing list