Skip to content

wlr_scene: Fix scaling with default source_box

Consolatis requested to merge Consolatis/wlroots:fix/scene_scaling into master

Default to texture instead of destination_box geometry.

Example before and after the change using the gles2 renderer:

swappy-20220530_171644 swappy-20220530_171755

All boxes share the same wlr_buffer and smaller and bigger boxes were scaled using wlr_scene_buffer_set_dest_size().
The 3 boxes on the bottom were additionally transformed via wlr_scene_buffer_set_transform(scene_buffer, WL_OUTPUT_TRANSFORM_90)

Merge request reports