mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 22:27:18 +00:00
clients/window: use weston_platform_destroy_egl_surface wrapper
v2: Use correct (destroy) API (Dan) Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
0050536702
commit
050e5d00da
|
@ -645,7 +645,7 @@ egl_window_surface_destroy(struct toysurface *base)
|
||||||
struct display *d = surface->display;
|
struct display *d = surface->display;
|
||||||
|
|
||||||
cairo_surface_destroy(surface->cairo_surface);
|
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);
|
wl_egl_window_destroy(surface->egl_window);
|
||||||
surface->surface = NULL;
|
surface->surface = NULL;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue