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:
@@ -180,6 +180,7 @@ _eglCleanupDisplay(_EGLDisplay *disp)
|
||||
free(disp->Configs);
|
||||
disp->Configs = NULL;
|
||||
disp->NumConfigs = 0;
|
||||
disp->MaxConfigs = 0;
|
||||
}
|
||||
|
||||
/* XXX incomplete */
|
||||
|
||||
Reference in New Issue
Block a user