From 545eaf83b5f096e5b16b2056e13b76f58d9211c9 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Tue, 26 Jan 2010 18:34:29 +0800 Subject: [PATCH] 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 file changed, 1 insertion(+) 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 */ -- 2.30.2