[PATCH weston 3/8] clients/simple-egl: use weston_platform_destroy_egl_surface wrapper

Emil Velikov emil.l.velikov at gmail.com
Mon Nov 14 17:08:14 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/simple-egl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/clients/simple-egl.c b/clients/simple-egl.c
index 9d401f9..d54e2ce 100644
--- a/clients/simple-egl.c
+++ b/clients/simple-egl.c
@@ -436,7 +436,8 @@ destroy_surface(struct window *window)
 	eglMakeCurrent(window->display->egl.dpy, EGL_NO_SURFACE, EGL_NO_SURFACE,
 		       EGL_NO_CONTEXT);
 
-	eglDestroySurface(window->display->egl.dpy, window->egl_surface);
+	weston_platform_destroy_egl_surface(window->display->egl.dpy,
+					    window->egl_surface);
 	wl_egl_window_destroy(window->native);
 
 	if (window->xdg_toplevel)
-- 
2.9.3



More information about the wayland-devel mailing list