[mutter] stage-impl: Use onscreen framebuffer for scanout



commit d3b81d70f04344757ad9693ce0d02d419ee9225a
Author: Robert Mader <robert mader posteo de>
Date:   Wed Jun 15 23:21:27 2022 +0200

    stage-impl: Use onscreen framebuffer for scanout
    
    We may want to use scanout even if the default framebuffer
    of the stage view is an offscreen, for example when a Wayland
    client provides pre-rotated buffers. The caller is responsible
    to ensure this is correct - we already asserted on that before.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2468>

 src/backends/meta-stage-impl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/backends/meta-stage-impl.c b/src/backends/meta-stage-impl.c
index d562603c33..6cc7e78fdb 100644
--- a/src/backends/meta-stage-impl.c
+++ b/src/backends/meta-stage-impl.c
@@ -681,7 +681,7 @@ meta_stage_impl_scanout_view (MetaStageImpl     *stage_impl,
   MetaStageImplPrivate *priv =
     meta_stage_impl_get_instance_private (stage_impl);
   CoglFramebuffer *framebuffer =
-    clutter_stage_view_get_framebuffer (stage_view);
+    clutter_stage_view_get_onscreen (stage_view);
   CoglContext *cogl_context = cogl_framebuffer_get_context (framebuffer);
   CoglOnscreen *onscreen;
   CoglFrameInfo *frame_info;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]