screencopy: Use correct dmabuf to get y-inversion flag
Because wlr_renderer_blit_dmabuf() undoes y-inversion on the source buffer, it is incorrect to pass the y-inversion flag of the source buffer to the user.
This commit is contained in:
parent
e05a85327f
commit
1d835f2035
|
@ -208,7 +208,7 @@ static void frame_handle_output_precommit(struct wl_listener *listener,
|
||||||
ok = wlr_output_export_dmabuf(frame->output, &attr);
|
ok = wlr_output_export_dmabuf(frame->output, &attr);
|
||||||
ok = ok && wlr_renderer_blit_dmabuf(renderer,
|
ok = ok && wlr_renderer_blit_dmabuf(renderer,
|
||||||
&dma_buffer->attributes, &attr);
|
&dma_buffer->attributes, &attr);
|
||||||
flags |= attr.flags & WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT ?
|
flags |= dma_buffer->attributes.flags & WLR_DMABUF_ATTRIBUTES_FLAGS_Y_INVERT ?
|
||||||
ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT : 0;
|
ZWLR_SCREENCOPY_FRAME_V1_FLAGS_Y_INVERT : 0;
|
||||||
wlr_dmabuf_attributes_finish(&attr);
|
wlr_dmabuf_attributes_finish(&attr);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue