forked from enlightenment/enlightenment
avoid crash when calling e_pixmap_image_exists on wl pixmaps without buffers
This commit is contained in:
parent
e3590f6c3e
commit
669f00e2e2
|
@ -879,7 +879,8 @@ e_pixmap_image_exists(const E_Pixmap *cp)
|
|||
return !!cp->image;
|
||||
#endif
|
||||
#ifdef HAVE_WAYLAND
|
||||
return (!!cp->data) || (e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer;
|
||||
return (!!cp->data) ||
|
||||
cp->buffer && ((e_comp->gl && (!cp->buffer->shm_buffer)) || cp->buffer->dmabuf_buffer);
|
||||
#endif
|
||||
|
||||
return EINA_FALSE;
|
||||
|
|
Loading…
Reference in New Issue