[PATCH weston 2/8] clients/nested-client: destroy the EGL surface during teardown

Emil Velikov emil.l.velikov at gmail.com
Mon Nov 14 17:08:13 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 clients/nested-client.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clients/nested-client.c b/clients/nested-client.c
index 9918da1..0ac6d8f 100644
--- a/clients/nested-client.c
+++ b/clients/nested-client.c
@@ -333,6 +333,8 @@ nested_client_destroy(struct nested_client *client)
 		       EGL_NO_SURFACE, EGL_NO_SURFACE,
 		       EGL_NO_CONTEXT);
 
+	weston_platform_destroy_egl_surface(client->egl_display,
+					    client->egl_surface);
 	wl_egl_window_destroy(client->native);
 
 	wl_surface_destroy(client->surface);
-- 
2.9.3



More information about the wayland-devel mailing list