From 8e1bd64e05c3098fcce4f916f9e4468decb8f30c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Dre=C3=9Fler?= Date: Sat, 7 Mar 2020 20:29:09 +0100 Subject: [PATCH] clutter/stage-cogl: Use view fb instead of onscreen fb for debug-drawing We need to use the framebuffer of the view instead of the onscreen framebuffer when painting the damage region, otherwise the redraw clips on rotated monitors won't be shown correctly. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1237 --- clutter/clutter/cogl/clutter-stage-cogl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clutter/clutter/cogl/clutter-stage-cogl.c b/clutter/clutter/cogl/clutter-stage-cogl.c index 227107a93..db87e3933 100644 --- a/clutter/clutter/cogl/clutter-stage-cogl.c +++ b/clutter/clutter/cogl/clutter-stage-cogl.c @@ -291,7 +291,7 @@ paint_damage_region (ClutterStageWindow *stage_window, cairo_region_t *swap_region, cairo_region_t *queued_redraw_clip) { - CoglFramebuffer *framebuffer = clutter_stage_view_get_onscreen (view); + CoglFramebuffer *framebuffer = clutter_stage_view_get_framebuffer (view); CoglContext *ctx = cogl_framebuffer_get_context (framebuffer); static CoglPipeline *overlay_blue = NULL; ClutterStageCogl *stage_cogl = CLUTTER_STAGE_COGL (stage_window);