summaryrefslogtreecommitdiff
path: root/src/modules/evas/engines/wayland_egl/evas_wl_main.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 16:59:43 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-08-07 16:59:43 +0100
commit064b46b7a3ab223c2453628d22ae80db5868b2c6 (patch)
tree7fc0dc2dc8ae01a2549fbf0256abaca6ea151926 /src/modules/evas/engines/wayland_egl/evas_wl_main.c
parent8e67e9d18e2d0862d86cbe7c4c6e319977054510 (diff)
evas egl - esnure we always destroy surfaces because creating new ones
be sure we dont leak them.
Diffstat (limited to '')
-rw-r--r--src/modules/evas/engines/wayland_egl/evas_wl_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/evas/engines/wayland_egl/evas_wl_main.c b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
index ff78e72cca..55e6a51e24 100644
--- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c
+++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c
@@ -339,6 +339,8 @@ eng_window_resurf(Outbuf *gw)
339 gw->win = wl_egl_window_create(wls, gw->h, gw->w); 339 gw->win = wl_egl_window_create(wls, gw->h, gw->w);
340 } 340 }
341 341
342 if (gw->egl_surface != EGL_NO_SURFACE)
343 eglDestroySurface(gw->egl_disp, gw->egl_surface);
342 gw->egl_surface = 344 gw->egl_surface =
343 eglCreateWindowSurface(gw->egl_disp, gw->egl_config, 345 eglCreateWindowSurface(gw->egl_disp, gw->egl_config,
344 (EGLNativeWindowType)gw->win, NULL); 346 (EGLNativeWindowType)gw->win, NULL);