diff options
author | emersion <contact@emersion.fr> | 2018-04-25 08:33:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-25 08:33:41 +0100 |
commit | 99e9f08c4add8f0d77c94d1b37daaec25809cf26 (patch) | |
tree | 240bcac75264906411ef9f454dced46f71702649 /examples | |
parent | c40f86d27f611a2b34cead63e63c12d6a18263eb (diff) | |
parent | 018b82c01e642aae45dace95c5aae5d489e98853 (diff) |
Merge pull request #903 from emersion/wlr-egl-destroy-surface
render/egl: add wlr_egl_destroy_surface
Diffstat (limited to 'examples')
-rw-r--r-- | examples/layer-shell.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/layer-shell.c b/examples/layer-shell.c index d9deb7b0..ec25fe42 100644 --- a/examples/layer-shell.c +++ b/examples/layer-shell.c @@ -188,9 +188,8 @@ static void xdg_popup_configure(void *data, struct xdg_popup *xdg_popup, } } -static void popup_destroy() -{ - eglDestroySurface(egl.display, popup_egl_surface); +static void popup_destroy() { + wlr_egl_destroy_surface(&egl, popup_egl_surface); wl_egl_window_destroy(popup_egl_window); xdg_popup_destroy(popup); wl_surface_destroy(popup_wl_surface); @@ -262,7 +261,7 @@ static void layer_surface_configure(void *data, static void layer_surface_closed(void *data, struct zwlr_layer_surface_v1 *surface) { - eglDestroySurface(egl.display, egl_surface); + wlr_egl_destroy_surface(&egl, egl_surface); wl_egl_window_destroy(egl_window); zwlr_layer_surface_v1_destroy(surface); wl_surface_destroy(wl_surface); |