diff options
author | Chia-I Wu <[email protected]> | 2009-08-13 13:39:51 +0800 |
---|---|---|
committer | Brian Paul <[email protected]> | 2009-08-18 08:49:22 -0600 |
commit | ccc2b0bc65b02d4582d52d133290c8cb046bce8f (patch) | |
tree | 8e5ca6fa9354e0cdc7ed6112651c8afefc386f92 /src/egl/main/egldisplay.c | |
parent | 5a2c9372a0d9fa1efd924f9386a4e3df47c17d0e (diff) |
egl: _eglCloseDriver should be no-op.
Move drv->API.Terminate call to eglTerminate. Remove
_eglReleaseDisplayResource as drivers are doing it.
Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'src/egl/main/egldisplay.c')
-rw-r--r-- | src/egl/main/egldisplay.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index ba7e634c9d6..0693f258ded 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -40,7 +40,6 @@ _eglFiniDisplay(void) if (dpy->ContextList || dpy->SurfaceList) _eglLog(_EGL_DEBUG, "Display %u is destroyed with resources", key); - _eglCleanupDisplay(dpy); free(dpy); key = _eglHashNextEntry(_eglDisplayHash, key); @@ -237,11 +236,13 @@ _eglCleanupDisplay(_EGLDisplay *disp) { EGLint i; - for (i = 0; i < disp->NumConfigs; i++) { - free(disp->Configs[i]); + if (disp->Configs) { + for (i = 0; i < disp->NumConfigs; i++) + free(disp->Configs[i]); + free(disp->Configs); + disp->Configs = NULL; + disp->NumConfigs = 0; } - free(disp->Configs); - disp->Configs = NULL; /* XXX incomplete */ } |