From 17dc5c57dd5795f23a9a005f61b8871a6b4bb5d1 Mon Sep 17 00:00:00 2001 From: "Owen W. Taylor" Date: Thu, 28 Aug 2014 15:18:23 -0400 Subject: [PATCH] Use meta_actor_painting_untransformed() for MetaShapedTexture The old check for using NEAREST by checking clutter_actor_is_in_clone_paint() and meta_actor_is_untransformed (actor) doesn't work properly since clutter_actor_is_in_clone_paint() does not look at ancestors of the actor; it only applies to a direct clone of the actor. Using meta_actor_painting_untransformed() allows us to check exactly what we care about rather than using tricky approximations. https://bugzilla.gnome.org/show_bug.cgi?id=735632 --- src/compositor/meta-shaped-texture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor/meta-shaped-texture.c b/src/compositor/meta-shaped-texture.c index b3fe13204..163c5e610 100644 --- a/src/compositor/meta-shaped-texture.c +++ b/src/compositor/meta-shaped-texture.c @@ -343,7 +343,7 @@ meta_shaped_texture_paint (ClutterActor *actor) filter = COGL_PIPELINE_FILTER_LINEAR; - if (!clutter_actor_is_in_clone_paint (actor) && meta_actor_is_untransformed (actor, NULL, NULL)) + if (meta_actor_painting_untransformed (tex_width, tex_height, NULL, NULL)) filter = COGL_PIPELINE_FILTER_NEAREST; ctx = clutter_backend_get_cogl_context (clutter_get_default_backend ());