mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-15 21:47:29 +00:00
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 <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
903cb5727b
commit
0050536702
|
@ -518,7 +518,8 @@ static void
|
||||||
triangle_destroy(struct triangle *tri)
|
triangle_destroy(struct triangle *tri)
|
||||||
{
|
{
|
||||||
if (tri->egl_surface)
|
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)
|
if (tri->egl_window)
|
||||||
wl_egl_window_destroy(tri->egl_window);
|
wl_egl_window_destroy(tri->egl_window);
|
||||||
|
|
Loading…
Reference in a new issue