[mutter/gnome-3-34] shaped-texture: Do not invalidate content on set_cogl_texture()



commit 1b75d78c72bc188b3332b3d23b13c17f673e385f
Author: Robert Mader <robert mader posteo de>
Date:   Tue Nov 26 20:27:49 2019 +0000

    shaped-texture: Do not invalidate content on set_cogl_texture()
    
    This was wrongly introduced in 75cffd0ec4. As the comment above explains, we
    only want to queue redraws in response to surface/buffer damage.
    
    This triggered a full redraw when using DMA buffers on Wayland as we currently
    create a new texture on every buffer_attach(), breaking partial invalidation.
    
    Fixes https://gitlab.gnome.org/GNOME/mutter/issues/947
    
    
    (cherry picked from commit 0247d35e5a8e642cb093fcda1c5645e49a769f4b)

 src/compositor/meta-shaped-texture.c | 2 --
 1 file changed, 2 deletions(-)
---
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index ba0c883f0..0d26e2283 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -492,8 +492,6 @@ set_cogl_texture (MetaShapedTexture *stex,
 
   if (stex->create_mipmaps)
     meta_texture_tower_set_base_texture (stex->paint_tower, cogl_tex);
-
-  clutter_content_invalidate (CLUTTER_CONTENT (stex));
 }
 
 static gboolean


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]