mirror of
https://gitlab.freedesktop.org/wayland/weston
synced 2024-10-07 04:55:00 +00:00
clients/simple-egl: 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
915ee13278
commit
903cb5727b
|
@ -457,7 +457,8 @@ destroy_surface(struct window *window)
|
||||||
eglMakeCurrent(window->display->egl.dpy, EGL_NO_SURFACE, EGL_NO_SURFACE,
|
eglMakeCurrent(window->display->egl.dpy, EGL_NO_SURFACE, EGL_NO_SURFACE,
|
||||||
EGL_NO_CONTEXT);
|
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);
|
wl_egl_window_destroy(window->native);
|
||||||
|
|
||||||
if (window->xdg_toplevel)
|
if (window->xdg_toplevel)
|
||||||
|
|
Loading…
Reference in a new issue