Remove some duplicate operations
the native surface version was set outside of the switch statement, so we don't need to re-set it to the same thing here.
This commit is contained in:
parent
1f2b95ae4f
commit
52c379f4b2
|
@ -721,7 +721,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns)
|
||||||
if (cp->buffer->dmabuf_buffer)
|
if (cp->buffer->dmabuf_buffer)
|
||||||
{
|
{
|
||||||
ns->type = EVAS_NATIVE_SURFACE_WL_DMABUF;
|
ns->type = EVAS_NATIVE_SURFACE_WL_DMABUF;
|
||||||
ns->version = EVAS_NATIVE_SURFACE_VERSION;
|
|
||||||
|
|
||||||
ns->data.wl_dmabuf.attr = &cp->buffer->dmabuf_buffer->attributes;
|
ns->data.wl_dmabuf.attr = &cp->buffer->dmabuf_buffer->attributes;
|
||||||
ns->data.wl_dmabuf.resource = cp->buffer->resource;
|
ns->data.wl_dmabuf.resource = cp->buffer->resource;
|
||||||
|
@ -731,7 +730,6 @@ e_pixmap_native_surface_init(E_Pixmap *cp, Evas_Native_Surface *ns)
|
||||||
else if (!cp->buffer->shm_buffer)
|
else if (!cp->buffer->shm_buffer)
|
||||||
{
|
{
|
||||||
ns->type = EVAS_NATIVE_SURFACE_WL;
|
ns->type = EVAS_NATIVE_SURFACE_WL;
|
||||||
ns->version = EVAS_NATIVE_SURFACE_VERSION;
|
|
||||||
ns->data.wl.legacy_buffer = cp->buffer->resource;
|
ns->data.wl.legacy_buffer = cp->buffer->resource;
|
||||||
ret = EINA_TRUE;
|
ret = EINA_TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue