From d3b81d70f04344757ad9693ce0d02d419ee9225a Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Wed, 15 Jun 2022 23:21:27 +0200 Subject: [PATCH] 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: --- 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 d562603c3..6cc7e78fd 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;