summaryrefslogtreecommitdiffstats
path: root/src/egl/main
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-26 18:34:29 +0800
committerChia-I Wu <[email protected]>2010-01-26 18:46:05 +0800
commit545eaf83b5f096e5b16b2056e13b76f58d9211c9 (patch)
tree5f492784792f59036533093e3e5fb3543814885d /src/egl/main
parenta1717970e78d897f527273278bf1346cc86a5741 (diff)
egl: Fix a segfault when a display is initialized again.
Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
Diffstat (limited to 'src/egl/main')
-rw-r--r--src/egl/main/egldisplay.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c
index 125909d2bc9..b53cc597132 100644
--- a/src/egl/main/egldisplay.c
+++ b/src/egl/main/egldisplay.c
@@ -180,6 +180,7 @@ _eglCleanupDisplay(_EGLDisplay *disp)
free(disp->Configs);
disp->Configs = NULL;
disp->NumConfigs = 0;
+ disp->MaxConfigs = 0;
}
/* XXX incomplete */