diff options
author | Owen W. Taylor <otaylor@fishsoup.net> | 2009-06-08 09:54:30 -0400 |
---|---|---|
committer | Owen W. Taylor <otaylor@fishsoup.net> | 2009-06-11 14:49:59 -0400 |
commit | 7eae5d4eabc33985f3a1dc4cd911f1256f2f222a (patch) | |
tree | c638f294eaf99ef438fcd257b3c4c0ae4f07a3de | |
parent | f3914c86b9570bad2572600b0c2a9e9bca7417d4 (diff) | |
download | mutter-7eae5d4eabc33985f3a1dc4cd911f1256f2f222a.tar.gz |
Allow slicing the mask texture
It doesn't make sense to allow the window texture to be sliced,
but not allow the mask texture to be sliced. So, we should either
set 'disable-slicing' for the texture actor or not pass NO_SLICING when
creating the mask texture.
While slicing currently results in only the first layer being shown,
disabling slicing entirely would break windows larger than the texture
size limit. It would be straightforward to support multitexturing of
sliced textures in Cogl when all the textures are identically sized
and sliced identically, if it became a priority.
http://bugzilla.gnome.org/show_bug.cgi?id=585151
-rwxr-xr-x | src/compositor/mutter/mutter-shaped-texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor/mutter/mutter-shaped-texture.c b/src/compositor/mutter/mutter-shaped-texture.c index f613afe35..ef78e25c7 100755 --- a/src/compositor/mutter/mutter-shaped-texture.c +++ b/src/compositor/mutter/mutter-shaped-texture.c @@ -227,7 +227,7 @@ mutter_shaped_texture_ensure_mask (MutterShapedTexture *stex) } else priv->mask_texture = cogl_texture_new_from_data (tex_width, tex_height, - COGL_TEXTURE_NO_SLICING, + COGL_TEXTURE_NONE, COGL_PIXEL_FORMAT_A_8, COGL_PIXEL_FORMAT_ANY, tex_width, |