* 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:
Neil Roberts
2008-07-17 10:08:52 +00:00
parent e1cc4d8e93
commit e33cce309a
6 changed files with 13 additions and 20 deletions

View File

@@ -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