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,
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user