Module: Mesa Branch: master Commit: 545eaf83b5f096e5b16b2056e13b76f58d9211c9 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=545eaf83b5f096e5b16b2056e13b76f58d9211c9
Author: Chia-I Wu <[email protected]> Date: Tue Jan 26 18:34:29 2010 +0800 egl: Fix a segfault when a display is initialized again. Reset dpy->MaxConfigs so that dpy->Configs is re-allocated. --- src/egl/main/egldisplay.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index 125909d..b53cc59 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 */ _______________________________________________ mesa-commit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/mesa-commit
