[mutter/wip/carlosg/empty-invalidations: 2/2] clutter/cogl: Ensure to paint full view if there's no buffer age support
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/empty-invalidations: 2/2] clutter/cogl: Ensure to paint full view if there's no buffer age support
- Date: Fri, 25 Oct 2019 14:48:36 +0000 (UTC)
commit 075835e137ac24a0f4b9857d238c7f8d9561d3e8
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Oct 25 16:35:29 2019 +0200
clutter/cogl: Ensure to paint full view if there's no buffer age support
This was falling back to painting an empty area, which is not what we want.
clutter/clutter/cogl/clutter-stage-cogl.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c
index 99b54e5db..21fba39a7 100644
--- a/clutter/clutter/cogl/clutter-stage-cogl.c
+++ b/clutter/clutter/cogl/clutter-stage-cogl.c
@@ -771,8 +771,9 @@ clutter_stage_cogl_redraw_view (ClutterStageWindow *stage_window,
}
else
{
- fb_clip_region = cairo_region_create ();
- redraw_clip = cairo_region_reference (fb_clip_region);
+ cairo_rectangle_int_t rect = { 0, 0, view_rect.width, view_rect.height };
+ fb_clip_region = cairo_region_create_rectangle (&rect);
+ redraw_clip = cairo_region_copy (fb_clip_region);
}
if (may_use_clipped_redraw &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]