[mutter] stage: Push framebuffer before setting up viewport
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] stage: Push framebuffer before setting up viewport
- Date: Wed, 20 Dec 2017 10:57:52 +0000 (UTC)
commit 2b60fb01445133e11214d3e66984708387128fd1
Author: Marco Trevisan (TreviƱo) <mail 3v1n0 net>
Date: Wed Dec 20 01:50:09 2017 +0100
stage: Push framebuffer before setting up viewport
When capture_view* functions are called with the paint flag set
to TRUE, we need to setup the framebuffer, however this was
happening after setting up the viewport, while the viewport
needs the framebuffer to be valid when calling cogl_set_viewport.
https://bugzilla.gnome.org/show_bug.cgi?id=791809
clutter/clutter/clutter-stage.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index 02ab07b..0a800f4 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -4726,8 +4726,8 @@ capture_view (ClutterStage *stage,
if (paint)
{
- _clutter_stage_maybe_setup_viewport (stage, view);
cogl_push_framebuffer (framebuffer);
+ _clutter_stage_maybe_setup_viewport (stage, view);
clutter_stage_do_paint_view (stage, view, rect);
}
@@ -4829,8 +4829,8 @@ capture_view_into (ClutterStage *stage,
if (paint)
{
- _clutter_stage_maybe_setup_viewport (stage, view);
cogl_push_framebuffer (framebuffer);
+ _clutter_stage_maybe_setup_viewport (stage, view);
clutter_stage_do_paint_view (stage, view, rect);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]