From faaff037306be31b69fa255b8d3dae91b341256b Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Mon, 13 Dec 2010 17:21:58 +0000 Subject: [PATCH] clutter-stage: Don't always set the projection and viewport matrix The stage has a dirty flag to record whenever the viewport and projection matrices need to be flushed. However after flushing these the flags were never cleared so it would always redundantly update the state. http://bugzilla.clutter-project.org/show_bug.cgi?id=2480 --- clutter/clutter-stage.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index b3d8a6fbb..0a553c26f 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -2690,10 +2690,16 @@ _clutter_stage_maybe_setup_viewport (ClutterStage *stage) priv->viewport[2], priv->viewport[3]); + + priv->dirty_viewport = FALSE; } if (priv->dirty_projection) - cogl_set_projection_matrix (&priv->projection); + { + cogl_set_projection_matrix (&priv->projection); + + priv->dirty_projection = FALSE; + } } /**