egl: Destroy display's resources upon termination.

eglTerminate should destroy the contexts and surfaces of the display.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
Chia-I Wu
2009-07-16 21:21:57 -07:00
committed by Brian Paul
parent be9d1ab171
commit 3f7e0d5302
3 changed files with 37 additions and 3 deletions

View File

@@ -56,6 +56,10 @@ extern _EGLDisplay *
_eglFindDisplay(NativeDisplayType nativeDisplay);
extern void
_eglReleaseDisplayResources(_EGLDriver *drv, EGLDisplay dpy);
extern void
_eglCleanupDisplay(_EGLDisplay *disp);