From 0f9dea0337aadc5c7218c93a592d83ae4828d6b4 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 10 Jun 2009 14:52:53 +0100 Subject: [PATCH] Force a paint instead of calling clutter_redraw() We do not need the whole redraw machinery inside clutter_stage_read_pixels(): instead, we want Clutter to drop everything, paint and call glReadPixels() with the current buffer. --- clutter/clutter-stage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter-stage.c b/clutter/clutter-stage.c index 2627169..7fdb981 100644 --- a/clutter/clutter-stage.c +++ b/clutter/clutter-stage.c @@ -1372,8 +1372,8 @@ clutter_stage_read_pixels (ClutterStage *stage, g_return_val_if_fail (x >= 0 && y >= 0, NULL); /* Force a redraw of the stage before reading back pixels */ - clutter_redraw (stage); clutter_stage_ensure_current (stage); + clutter_actor_paint (CLUTTER_ACTOR (stage)); glGetIntegerv (GL_VIEWPORT, viewport); stage_x = viewport[0]; -- 2.7.4