[EvasGL] update wl_egl_window in wayland egl backend. 83/131083/2
authorWonsik, Jung <sidein@samsung.com>
Thu, 25 May 2017 09:46:30 +0000 (18:46 +0900)
committerGerrit Code Review <gerrit@review.ap-northeast-2.compute.internal>
Fri, 26 May 2017 06:26:39 +0000 (06:26 +0000)
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

src/modules/evas/engines/wayland_egl/evas_wl_main.c

index 57bc4e1..99ba172 100644 (file)
@@ -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);