if (surf)\r
{\r
Evas_Native_Surface evas_native_surface;\r
+\r
+ memset(&evas_native_surface, 0, sizeof(Evas_Native_Surface));\r
+\r
image->native = *surf;\r
switch (surf->type)\r
{\r
evas_native_surface.data.tbm.buffer = surf->data.tbm.buffer;\r
evas_native_surface.data.tbm.rot = surf->data.tbm.rot;\r
evas_native_surface.data.tbm.ratio = surf->data.tbm.ratio;\r
+ evas_native_surface.version = surf->version;\r
break;\r
case E_VIEW_NATIVE_SURFACE_WL:\r
evas_native_surface.type = EVAS_NATIVE_SURFACE_WL;\r
evas_native_surface.data.wl.legacy_buffer = surf->data.wl.legacy_buffer;\r
+ evas_native_surface.version = surf->version;\r
break;\r
default:\r
image->native.type = E_VIEW_NATIVE_SURFACE_NONE;\r
evas_native_surface.type = EVAS_NATIVE_SURFACE_NONE;\r
+ evas_native_surface.version = surf->version;\r
}\r
\r
// this function is implemented copy of native_surface's structure after alloc inside of set function.\r