summaryrefslogtreecommitdiff
path: root/clutter
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2016-08-01 02:55:13 +0200
committerCarlos Garnacho <carlosg@gnome.org>2016-08-24 02:38:05 +0200
commit61e9c5c357398b78b3658bc726cbb70dc09728c0 (patch)
tree3d6319cc4bdee8389eb9efe36f20b2d4c0d52c96 /clutter
parent54dc10f890919b7eab6fc893776fa6cef5aefdc2 (diff)
downloadmutter-61e9c5c357398b78b3658bc726cbb70dc09728c0.tar.gz
clutter/cogl: Hook up ClutterStageView render-to-texture
"Blit" the result on the framebuffer after each view is painted. This of course only applies if there is an offscreen buffer to perform any blitting. Otherwise the onscreen framebuffer is rendered to directly and this step is not necessary. https://bugzilla.gnome.org/show_bug.cgi?id=745079
Diffstat (limited to 'clutter')
-rw-r--r--clutter/clutter/cogl/clutter-stage-cogl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 6bf2f7b0a..2ef862b15 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -419,6 +419,12 @@ paint_stage (ClutterStageCogl *stage_cogl,
_clutter_stage_maybe_setup_viewport (stage, view);
_clutter_stage_paint_view (stage, view, clip);
+
+ if (clutter_stage_view_get_onscreen (view) !=
+ clutter_stage_view_get_framebuffer (view))
+ {
+ clutter_stage_view_blit_offscreen (view, clip);
+ }
}
static void