From 735877d89a02028cfb3a0803d32c77e5f2e22de5 Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 30 Sep 2008 16:54:12 +0100 Subject: [PATCH] Don't try to use multisampling for textures that are sliced. --- src/compositor/shaped-texture.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/compositor/shaped-texture.c b/src/compositor/shaped-texture.c index 38ceb697a..8ca9aa866 100644 --- a/src/compositor/shaped-texture.c +++ b/src/compositor/shaped-texture.c @@ -345,6 +345,14 @@ meta_shaped_texture_paint (ClutterActor *actor) if (paint_tex == COGL_INVALID_HANDLE) return; + /* If the texture is sliced then the multitexturing won't work */ + if (cogl_texture_is_sliced (paint_tex)) + { + CLUTTER_ACTOR_CLASS (meta_shaped_texture_parent_class) + ->paint (actor); + return; + } + tex_width = cogl_texture_get_width (paint_tex); tex_height = cogl_texture_get_height (paint_tex);