avoid crash when calling e_pixmap_image_exists on wl pixmaps without buffers

This commit is contained in:
Mike Blumenkrantz 2016-11-03 12:24:25 -04:00
parent 1cbb0b2152
commit 070eb16a17
1 changed files with 2 additions and 1 deletions

View File

@ -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;