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:
@@ -284,9 +284,7 @@ _eglCloseDriver(_EGLDriver *drv, EGLDisplay dpy)
|
||||
|
||||
_eglLog(_EGL_DEBUG, "Closing %s", drv->Name);
|
||||
|
||||
/*
|
||||
* XXX check for currently bound context/surfaces and delete them?
|
||||
*/
|
||||
_eglReleaseDisplayResources(drv, dpy);
|
||||
|
||||
b = drv->API.Terminate(drv, dpy);
|
||||
|
||||
|
Reference in New Issue
Block a user