mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 14:10:30 +00:00
wayland: Fix an offload cornercase
Treat textures with background as opaque for the purposes of offloading.
This commit is contained in:
parent
2d8f677e63
commit
4b0d17b332
@ -450,7 +450,8 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub,
|
||||
self);
|
||||
}
|
||||
else if (!will_be_above &&
|
||||
gdk_memory_format_alpha (gdk_texture_get_format (texture)) != GDK_MEMORY_ALPHA_OPAQUE)
|
||||
gdk_memory_format_alpha (gdk_texture_get_format (texture)) != GDK_MEMORY_ALPHA_OPAQUE &&
|
||||
!has_background)
|
||||
{
|
||||
GDK_DISPLAY_DEBUG (gdk_surface_get_display (sub->parent), OFFLOAD,
|
||||
"Cannot offload non-opaque %dx%d texture below, hiding subsurface %p",
|
||||
|
Loading…
Reference in New Issue
Block a user