fix pixmap image clearing based on pixmap type

!@%!@$#!# borkerhorns!!!!!!

invalidates T2291
This commit is contained in:
Mike Blumenkrantz 2015-04-16 14:34:54 -04:00
parent 83572a3edb
commit 14f44ef6e3
1 changed files with 5 additions and 3 deletions

View File

@ -601,10 +601,12 @@ e_pixmap_image_clear(E_Pixmap *cp, Eina_Bool cache)
if (!cache) if (!cache)
{ {
#ifndef HAVE_WAYLAND_ONLY #ifndef HAVE_WAYLAND_ONLY
if (!cp->image) return; if (e_pixmap_is_x(cp))
if (!cp->image) return;
#endif #endif
#if defined(HAVE_WAYLAND_CLIENTS) || defined(HAVE_WAYLAND_ONLY) #ifdef HAVE_WAYLAND
if (!cp->buffer_ref.buffer) return; if (cp->type == E_PIXMAP_TYPE_WL)
if (!cp->buffer_ref.buffer) return;
#endif #endif
} }