mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 03:20:46 -05:00
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
This commit is contained in:
parent
786f358888
commit
c632dcdd98
@ -343,7 +343,7 @@ meta_shaped_texture_paint (ClutterActor *actor)
|
|||||||
|
|
||||||
filter = COGL_PIPELINE_FILTER_LINEAR;
|
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;
|
filter = COGL_PIPELINE_FILTER_NEAREST;
|
||||||
|
|
||||||
ctx = clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
ctx = clutter_backend_get_cogl_context (clutter_get_default_backend ());
|
||||||
|
Loading…
Reference in New Issue
Block a user