[PATCH weston 4/8] clients/subsurfaces: use weston_platform_destroy_egl_surface wrapper
Emil Velikov
emil.l.velikov at gmail.com
Mon Nov 14 17:08:15 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
... over a direct eglDestroySurface call. Provides symmetry in the
create/destroy paths.
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
clients/subsurfaces.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/clients/subsurfaces.c b/clients/subsurfaces.c
index 45801a8..d88b861 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);
--
2.9.3
More information about the wayland-devel
mailing list