[PATCH weston v2 5/8] clients/window: use weston_platform_destroy_egl_surface wrapper
Emil Velikov
emil.l.velikov at gmail.com
Fri Nov 18 19:12:58 UTC 2016
From: Emil Velikov <emil.velikov at collabora.com>
v2: Use correct (destroy) API (Dan)
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
clients/window.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clients/window.c b/clients/window.c
index 84d585e..9c2fc68 100644
--- a/clients/window.c
+++ b/clients/window.c
@@ -645,7 +645,7 @@ egl_window_surface_destroy(struct toysurface *base)
struct display *d = surface->display;
cairo_surface_destroy(surface->cairo_surface);
- eglDestroySurface(d->dpy, surface->egl_surface);
+ weston_platform_destroy_egl_surface(d->dpy, surface->egl_surface);
wl_egl_window_destroy(surface->egl_window);
surface->surface = NULL;
--
2.9.3
More information about the wayland-devel
mailing list