[Title] evas : bug fixed image_native_set about EVAS_NATIVE_SURFACE_EVASGL type 91/53491/1
authorJoogab Yun <joogab.yun@samsung.com>
Mon, 7 Dec 2015 09:33:35 +0000 (18:33 +0900)
committerJoogab Yun <joogab.yun@samsung.com>
Mon, 7 Dec 2015 09:33:35 +0000 (18:33 +0900)
[Problem]

[Cause]

[Solution]

[Team] Graphics

Change-Id: Ib9aca2e4956f0744b0cdc8f83e82d3988f5f59a3

src/modules/evas/engines/wayland_egl/evas_engine.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 334e192..326b5b9
@@ -1302,16 +1302,16 @@ eng_image_native_set(void *data, void *image, void *native)
                      return img;
                }
           }
-     }
-   else if ((ns) && (ns->type == EVAS_NATIVE_SURFACE_EVASGL))
-     {
-        buffer = ns->data.evasgl.surface;
-        if (img->native.data)
+        else if (ns->type == EVAS_NATIVE_SURFACE_EVASGL)
           {
-             Evas_Native_Surface *ens = img->native.data;
-             if (ens->data.evasgl.surface == buffer)
-               return img;
-          }
+             buffer = ns->data.evasgl.surface;
+             if (img->native.data)
+               {
+                  Evas_Native_Surface *ens = img->native.data;
+                  if (ens->data.evasgl.surface == buffer)
+                     return img;
+                }
+           }
      }
 
    if ((!ns) && (!img->native.data)) return img;