gl_drm: Fix shadow warning

This commit is contained in:
Jean-Philippe Andre 2016-06-07 15:10:28 +09:00
parent ba85c4eff9
commit ecc1d5dfaf
1 changed files with 3 additions and 3 deletions

View File

@ -1316,11 +1316,11 @@ eng_image_native_set(void *data, void *image, void *native)
}
if ((n = calloc(1, sizeof(Native))))
{
struct dmabuf_attributes *a;
struct dmabuf_attributes *a2;
a = ns->data.wl_dmabuf.attr;
a2 = ns->data.wl_dmabuf.attr;
memcpy(&(n->ns), ns, sizeof(Evas_Native_Surface));
memcpy(&n->ns_data.wl_surface_dmabuf.attr, a, sizeof(*a));
memcpy(&n->ns_data.wl_surface_dmabuf.attr, a2, sizeof(*a2));
eina_hash_add(ob->gl_context->shared->native_wl_hash,
&wlid, img);