egl: Fix a segfault when a display is initialized again.

Reset dpy->MaxConfigs so that dpy->Configs is re-allocated.
This commit is contained in:
Chia-I Wu
2010-01-26 18:34:29 +08:00
parent a1717970e7
commit 545eaf83b5
+1
View File
@@ -180,6 +180,7 @@ _eglCleanupDisplay(_EGLDisplay *disp)
free(disp->Configs);
disp->Configs = NULL;
disp->NumConfigs = 0;
disp->MaxConfigs = 0;
}
/* XXX incomplete */