It doesn't need to initialise all elements of Evas_Native_Surface structure.
Change-Id: Icc7dfc903bbd5754d1e40d690436deb27562bc8c
if (cw->ec->input_only) return;
set = !!set;
+ memset(&ns, 0, sizeof(Evas_Native_Surface));
+
if (set)
{
/* native requires gl enabled, texture from pixmap enabled, and a non-shaped client */
else
{
Evas_Native_Surface ns;
-
+ memset(&ns, 0, sizeof(Evas_Native_Surface));
if (e_pixmap_native_surface_init(cw->ec->pixmap, &ns))
evas_object_image_native_surface_set(o, &ns);
}
ns->type = EVAS_NATIVE_SURFACE_TBM;
ns->version = EVAS_NATIVE_SURFACE_VERSION;
ns->data.tbm.buffer = cp->buffer->tbm_surface;
- ns->data.tbm.rot = 0;
- ns->data.tbm.ratio = 0;
- ns->data.tbm.flip = 0;
if (cp->buffer->tbm_surface)
ret = EINA_TRUE;
}