From: Dave Airlie Date: Mon, 16 Mar 2015 05:21:55 +0000 (+1000) Subject: egl: don't fill client apis string forever. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=37e3a116f8ae09d0fa894d126d081a1af24ec14f;p=mesa.git egl: don't fill client apis string forever. We never reset the string on eglTerminate, so it grows for ever on multiple eglInitialise. Reviewed-by: Brian Paul Reviewed-by: Matt Turner Signed-off-by: Dave Airlie --- diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index e2245606a8b..6031a7ad8dc 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; }