From: Wonsik, Jung Date: Thu, 25 May 2017 09:46:30 +0000 (+0900) Subject: [EvasGL] update wl_egl_window in wayland egl backend. X-Git-Tag: accepted/tizen/unified/20170605.150656~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F83%2F131083%2F2;p=platform%2Fupstream%2Fefl.git [EvasGL] update wl_egl_window in wayland egl backend. wl_egl_window is created in evas_wayland egl backend. So, wl_egl_window value of _Evas_Engine_Info_Wayland_Egl is needed to update with this value. Change-Id: I5076cd95ed90c951729d09ed03d5dd6efa93bf9e --- 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 57bc4e1..99ba172 100644 --- a/src/modules/evas/engines/wayland_egl/evas_wl_main.c +++ b/src/modules/evas/engines/wayland_egl/evas_wl_main.c @@ -136,6 +136,14 @@ _orig_eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int else if ((gw->rot == 90) || (gw->rot == 270)) gw->win = wl_egl_window_create(gw->surface, gw->h, gw->w); + if (gw->win == NULL) + { + ERR("wl_egl_window_create() fail"); + eng_window_free(gw); + return NULL; + } + gw->info->info.win = gw->win; + gw->egl_surface[0] = eglCreateWindowSurface(gw->egl_disp, gw->egl_config, (EGLNativeWindowType)gw->win, NULL);