[Mesa-dev] [PATCH] egl: don't fill client apis string forever.
Dave Airlie
airlied at gmail.com
Sun Mar 15 22:22:51 PDT 2015
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;
}
--
2.1.0
More information about the mesa-dev
mailing list