From 005053670227a074cd820464f46d553f80a00a18 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 14 Nov 2016 17:08:15 +0000 Subject: [PATCH] clients/subsurfaces: use weston_platform_destroy_egl_surface wrapper ... over a direct eglDestroySurface call. Provides symmetry in the create/destroy paths. Signed-off-by: Emil Velikov Reviewed-by: Daniel Stone --- clients/subsurfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c index 45801a8a..d88b8617 100644 --- a/clients/subsurfaces.c +++ b/clients/subsurfaces.c @@ -518,7 +518,8 @@ static void triangle_destroy(struct triangle *tri) { if (tri->egl_surface) - eglDestroySurface(tri->egl->dpy, tri->egl_surface); + weston_platform_destroy_egl_surface(tri->egl->dpy, + tri->egl_surface); if (tri->egl_window) wl_egl_window_destroy(tri->egl_window);