[EvasGL] Add env to enable PreRotation
authorWonsik, Jung <sidein@samsung.com>
Wed, 21 Dec 2016 02:15:22 +0000 (11:15 +0900)
committerWonki Kim <wonki_.kim@samsung.com>
Mon, 2 Jan 2017 07:27:05 +0000 (16:27 +0900)
For DDK does not support PreRotation, add ENV to enable Prerotation.

Change-Id: Ibcd15977ed7bb486b164039b83d1a16da6918b00

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

index 95135ae..57bc4e1 100644 (file)
@@ -148,7 +148,7 @@ _orig_eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int
      }
 
    //TIZEN_ONLY(20161121):Support PreRotation
-   if (glsym_wl_egl_win_get_capabilities)
+   if (getenv("EVAS_GL_PREROTATION") && glsym_wl_egl_win_get_capabilities)
      {
         int prerotation_cap = EVAS_WL_EGL_WINDOW_CAPABILITY_NONE;
         prerotation_cap = glsym_wl_egl_win_get_capabilities(gw->win);
@@ -158,12 +158,12 @@ _orig_eng_window_new(Evas *evas, Evas_Engine_Info_Wayland_Egl *einfo, int w, int
           }
         else
           {
-            gw->support_pre_rotation = 0;
+             gw->support_pre_rotation = 0;
           }
      }
    else
      {
-        DBG("PreRotation API is Invalid!!");
+        DBG("PreRotation is invalid!!");
      }
 
    gw->egl_context[0] =