File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -626,28 +626,21 @@ struct output_layout_output_t
626
626
return ;
627
627
}
628
628
629
- wlr_dmabuf_attributes attributes;
630
629
if (source_back_buffer == NULL )
631
630
{
632
631
LOGE (" Got empty buffer on " , wo->handle ->name );
633
632
return ;
634
633
}
635
634
636
- if (!wlr_buffer_get_dmabuf (source_back_buffer, &attributes))
635
+ auto texture = wlr_texture_from_buffer (get_core ().renderer , source_back_buffer);
636
+ if (!texture)
637
637
{
638
- LOGE (" Failed reading mirrored output contents from " , wo->handle ->name );
639
-
638
+ LOGE (" Failed to export texture to dmabuf!" );
640
639
return ;
641
640
}
642
641
643
- /* We export the output to mirror from to a dmabuf, then create
644
- * a texture from this and use it to render "our" output */
645
- auto texture = wlr_texture_from_dmabuf (
646
- get_core ().renderer , &attributes);
647
642
render_output (texture);
648
-
649
643
wlr_texture_destroy (texture);
650
- wlr_dmabuf_attributes_finish (&attributes);
651
644
}
652
645
653
646
void set_enabled (bool enabled)
You can’t perform that action at this time.
0 commit comments