Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

render: drop wlr_renderer_impl.texture_from_{pixels,dmabuf} #2997

Merged
merged 6 commits into from
Jul 1, 2021

Conversation

emersion
Copy link
Member

Instead, unify all of the code-paths with wlr_renderer_impl.texture_from_buffer.

@emersion emersion added the breaking Breaking change in public API label Jun 29, 2021
size_t size = buffer->stride * buffer->base.height;
buffer->saved_data = malloc(size);
if (buffer->saved_data == NULL) {
wlr_log_errno(WLR_ERROR, "Allocation failed");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: the error message is very vague

@bl4ckb0ne bl4ckb0ne merged commit 29be2d4 into swaywm:master Jul 1, 2021
@emersion emersion deleted the rm-texture-from-pixels branch July 1, 2021 18:58
@emersion emersion mentioned this pull request Jul 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
breaking Breaking change in public API
Development

Successfully merging this pull request may close these issues.

2 participants