[Mesa-dev] [PATCH] egl: don't fill client apis string forever.
Matt Turner
mattst88 at gmail.com
Mon Mar 16 08:39:16 PDT 2015
On Sun, Mar 15, 2015 at 10:22 PM, Dave Airlie <airlied at gmail.com> 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;
Don't you need to do the same for dpy->ExtensionsString?
With that added, or me told why it's not needed
Reviewed-by: Matt Turner <mattst88 at gmail.com>
More information about the mesa-dev
mailing list