summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-02-05 15:35:00 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2014-02-05 15:39:28 -0500
commit18cfcc0221157be134cca674357a7bcd4aebac2e (patch)
tree1a3eefc6cb41030091932b81b2c6d81d633fe357
parent8daefd92df7f5a168143548561192cb11106200c (diff)
downloadmutter-18cfcc0221157be134cca674357a7bcd4aebac2e.tar.gz
shaped-texture: Make sure to set the texture tower's texture
This was part of the Wayland branch that I forgot to cherry-pick properly.
-rw-r--r--src/compositor/meta-shaped-texture.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c
index d1d205314..a22aa2e5b 100644
--- a/src/compositor/meta-shaped-texture.c
+++ b/src/compositor/meta-shaped-texture.c
@@ -567,8 +567,7 @@ meta_shaped_texture_set_create_mipmaps (MetaShapedTexture *stex,
{
CoglTexture *base_texture;
priv->create_mipmaps = create_mipmaps;
- base_texture = create_mipmaps ?
- COGL_TEXTURE (priv->texture) : NULL;
+ base_texture = create_mipmaps ? priv->texture : NULL;
meta_texture_tower_set_base_texture (priv->paint_tower, base_texture);
}
}
@@ -728,7 +727,13 @@ set_cogl_texture (MetaShapedTexture *stex,
clutter_actor_queue_relayout (CLUTTER_ACTOR (stex));
}
- clutter_actor_queue_redraw (CLUTTER_ACTOR (stex));
+ /* NB: We don't queue a redraw of the actor here because we don't
+ * know how much of the buffer has changed with respect to the
+ * previous buffer. We only queue a redraw in response to surface
+ * damage. */
+
+ if (priv->create_mipmaps)
+ meta_texture_tower_set_base_texture (priv->paint_tower, cogl_tex);
}
/**