wayland_egl: Destroy the outbuf when we lose our surface

This way we properly shut down when we get disconnected from the
compositor, and can reconnect later.
This commit is contained in:
Derek Foreman 2017-03-03 13:03:24 -06:00
parent eacd67498c
commit 18224858f3
1 changed files with 3 additions and 0 deletions

View File

@ -672,6 +672,9 @@ eng_update(void *data, void *info, unsigned int w, unsigned int h)
eglMakeCurrent(ob->egl_disp, EGL_NO_SURFACE, EGL_NO_SURFACE,
EGL_NO_CONTEXT);
ob->egl_surface = EGL_NO_SURFACE;
ob->surface = NULL;
evas_render_engine_software_generic_update(&re->generic.software,
NULL, w, h);
return 1;
}