gl_drm: Fix rendering problems with dmabuf

Somehow this long standing bug wasn't obvious until wayland 1.13.0 made
some additions to an opaque structure.

This changed the frequency that new buffers came to us with the exact
same pointer value of a buffer that had just been freed.

This shortcut in eng_image_native_set has always been wrong - we need to
proceed to the end to make sure we pick up new dmabuf attributes.
This commit is contained in:
Derek Foreman 2017-05-10 16:10:49 -05:00
parent 169a08c03a
commit 2653fd3fda
1 changed files with 0 additions and 8 deletions

View File

@ -1105,14 +1105,6 @@ eng_image_native_set(void *data, void *image, void *native)
if (ns->type == EVAS_NATIVE_SURFACE_WL_DMABUF)
{
wl_buf = ns->data.wl_dmabuf.resource;
if (img->native.data)
{
Evas_Native_Surface *ens;
ens = img->native.data;
if (ens->data.wl_dmabuf.resource == wl_buf)
return img;
}
}
else if (ns->type == EVAS_NATIVE_SURFACE_WL)
{