mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
render/color: return tranform in wlr_color_transform_ref()
This is more consistent with the rest of the wlroots APIs and is more concise.
This commit is contained in:
parent
a5aae69b2a
commit
fa2abbeefb
3 changed files with 4 additions and 4 deletions
|
|
@ -954,8 +954,7 @@ struct wlr_vk_render_pass *vulkan_begin_render_pass(struct wlr_vk_renderer *rend
|
|||
pass->renderer = renderer;
|
||||
pass->srgb_pathway = using_srgb_pathway;
|
||||
if (options != NULL && options->color_transform != NULL) {
|
||||
wlr_color_transform_ref(options->color_transform);
|
||||
pass->color_transform = options->color_transform;
|
||||
pass->color_transform = wlr_color_transform_ref(options->color_transform);
|
||||
}
|
||||
|
||||
rect_union_init(&pass->updated_region);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue