mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
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>
This commit is contained in:
parent
3c79eb56b9
commit
d3b81d70f0
@ -681,7 +681,7 @@ meta_stage_impl_scanout_view (MetaStageImpl *stage_impl,
|
|||||||
MetaStageImplPrivate *priv =
|
MetaStageImplPrivate *priv =
|
||||||
meta_stage_impl_get_instance_private (stage_impl);
|
meta_stage_impl_get_instance_private (stage_impl);
|
||||||
CoglFramebuffer *framebuffer =
|
CoglFramebuffer *framebuffer =
|
||||||
clutter_stage_view_get_framebuffer (stage_view);
|
clutter_stage_view_get_onscreen (stage_view);
|
||||||
CoglContext *cogl_context = cogl_framebuffer_get_context (framebuffer);
|
CoglContext *cogl_context = cogl_framebuffer_get_context (framebuffer);
|
||||||
CoglOnscreen *onscreen;
|
CoglOnscreen *onscreen;
|
||||||
CoglFrameInfo *frame_info;
|
CoglFrameInfo *frame_info;
|
||||||
|
Loading…
Reference in New Issue
Block a user