summaryrefslogtreecommitdiffstats
path: root/src/egl
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2015-03-16 15:21:55 +1000
committerDave Airlie <airlied@gmail.com>2015-03-19 08:28:38 +1000
commit37e3a116f8ae09d0fa894d126d081a1af24ec14f (patch)
tree9e81b4bccbc494f1e375993b0b09ca7730072fda /src/egl
parentcebc62f1060c815e3b5a1bd3728c3d909db3d2b8 (diff)
downloadexternal_mesa3d-37e3a116f8ae09d0fa894d126d081a1af24ec14f.zip
external_mesa3d-37e3a116f8ae09d0fa894d126d081a1af24ec14f.tar.gz
external_mesa3d-37e3a116f8ae09d0fa894d126d081a1af24ec14f.tar.bz2
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 <brianp@vmware.com> Reviewed-by: Matt Turner <mattst88@gmail.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/egl')
-rw-r--r--src/egl/main/eglapi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c
index e224560..6031a7a 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;
}