[Mesa-dev] [PATCH] egl: fix initialization of EGLImageAttribs.

Matt Turner mattst88 at gmail.com
Thu Apr 19 09:59:22 PDT 2012


On Thu, Apr 19, 2012 at 12:38 PM, Gwenole Beauchesne <gb.devel at gmail.com> wrote:
> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne at intel.com>
> ---
>  src/egl/main/eglimage.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/egl/main/eglimage.c b/src/egl/main/eglimage.c
> index 14760f2..a5132e0 100644
> --- a/src/egl/main/eglimage.c
> +++ b/src/egl/main/eglimage.c
> @@ -45,7 +45,7 @@ _eglParseImageAttribList(_EGLImageAttribs *attrs, _EGLDisplay *dpy,
>
>    (void) dpy;
>
> -   memset(attrs, 0, sizeof(attrs));
> +   memset(attrs, 0, sizeof(*attrs));
>    attrs->ImagePreserved = EGL_FALSE;
>    attrs->GLTextureLevel = 0;
>    attrs->GLTextureZOffset = 0;
> --
> 1.7.5.4

This was fixed earlier this month.
http://cgit.freedesktop.org/mesa/mesa/commit/src/egl/main/eglimage.c?id=071501a68129768c6223beb24f7363d87c6684ea


More information about the mesa-dev mailing list