summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2015-03-16 15:21:55 +1000
committerDave Airlie <[email protected]>2015-03-19 08:28:38 +1000
commit37e3a116f8ae09d0fa894d126d081a1af24ec14f (patch)
tree9e81b4bccbc494f1e375993b0b09ca7730072fda /src
parentcebc62f1060c815e3b5a1bd3728c3d909db3d2b8 (diff)
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src')
-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 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;
}