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.
This commit is contained in:
parent
e1cac4fece
commit
0f9dea0337
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user