[Mesa-dev] [PATCH] egl: don't fill client apis string forever.

Brian Paul brianp at vmware.com
Mon Mar 16 07:38:33 PDT 2015


On 03/15/2015 11:22 PM, Dave Airlie wrote:
> We never reset the string on eglTerminate, so it grows
> for ever on multiple eglInitialise.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
>   src/egl/main/eglapi.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
> index bd8ffa0..d139038 100644
> --- a/src/egl/main/eglapi.c
> +++ b/src/egl/main/eglapi.c
> @@ -514,6 +514,7 @@ eglTerminate(EGLDisplay dpy)
>
>         drv->API.Terminate(drv, disp);
>         /* do not reset disp->Driver */
> +      disp->ClientAPIsString[0] = 0;
>         disp->Initialized = EGL_FALSE;
>      }
>
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the mesa-dev mailing list