[Mesa-dev] [PATCH mesa] egl: remove duplicate 0 assignment

Tapani Pälli tapani.palli at intel.com
Wed Feb 15 04:58:22 UTC 2017


Reviewed-by: Tapani Pälli <tapani.palli at intel.com>

On 02/15/2017 12:21 AM, Eric Engestrom wrote:
> From: Eric Engestrom <eric.engestrom at imgtec.com>
>
> The memset on the line before already takes care of this.
>
> Signed-off-by: Eric Engestrom <eric.engestrom at imgtec.com>
> ---
>   src/egl/main/eglimage.c | 3 ---
>   1 file changed, 3 deletions(-)
>
> diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
> index 818b5975cd..d062cbfe01 100644
> --- a/src/egl/main/eglimage.c
> +++ b/src/egl/main/eglimage.c
> @@ -46,9 +46,6 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy,
>      (void) dpy;
>   
>      memset(attrs, 0, sizeof(*attrs));
> -   attrs->ImagePreserved = EGL_FALSE;
> -   attrs->GLTextureLevel = 0;
> -   attrs->GLTextureZOffset = 0;
>   
>      if (!attrib_list)
>         return err;




More information about the mesa-dev mailing list