mirror of
https://github.com/brl/mutter.git
synced 2025-08-01 14:15:30 +00:00
* clutter/clutter-texture.c:
* clutter/clutter-rectangle.c: * clutter/clutter-group.c: * clutter/clutter-entry.c: * clutter/clutter-clone-texture.c: Remove unnecessary calls to cogl_{push,pop}_matrix. The matrix is preserved in clutter_actor_paint whenever the actor's transformation is applied so there should be no need to push the matrix in actor paint implementations unless it does some additional transformations itself.
This commit is contained in:
@@ -480,8 +480,6 @@ clutter_texture_paint (ClutterActor *self)
|
||||
"painting texture '%s'",
|
||||
clutter_actor_get_name (self) ? clutter_actor_get_name (self)
|
||||
: "unknown");
|
||||
cogl_push_matrix ();
|
||||
|
||||
col.alpha = clutter_actor_get_paint_opacity (self);
|
||||
cogl_color (&col);
|
||||
|
||||
@@ -508,8 +506,6 @@ clutter_texture_paint (ClutterActor *self)
|
||||
CLUTTER_INT_TO_FIXED (x_2 - x_1),
|
||||
CLUTTER_INT_TO_FIXED (y_2 - y_1),
|
||||
0, 0, t_w, t_h);
|
||||
|
||||
cogl_pop_matrix ();
|
||||
}
|
||||
|
||||
static void
|
||||
|
Reference in New Issue
Block a user