fix pixmap image clearing based on pixmap type
!@%!@$#!# borkerhorns!!!!!! invalidates T2291
This commit is contained in:
parent
83572a3edb
commit
14f44ef6e3
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue