mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-20 02:10:06 +01:00
render/color: assert that wlr_color_transform_pipeline contains no NULLs
Consumers of transform pipelines are not expected to handle no-op stages
This commit is contained in:
parent
32d5fc1d11
commit
450d90a55d
1 changed files with 1 additions and 1 deletions
|
|
@ -88,8 +88,8 @@ struct wlr_color_transform *wlr_color_transform_init_pipeline(
|
||||||
}
|
}
|
||||||
wlr_color_transform_init(&tx->base, COLOR_TRANSFORM_PIPELINE);
|
wlr_color_transform_init(&tx->base, COLOR_TRANSFORM_PIPELINE);
|
||||||
|
|
||||||
// TODO: flatten nested pipeline transforms
|
|
||||||
for (size_t i = 0; i < len; i++) {
|
for (size_t i = 0; i < len; i++) {
|
||||||
|
assert(transforms[i] != NULL);
|
||||||
copy[i] = wlr_color_transform_ref(transforms[i]);
|
copy[i] = wlr_color_transform_ref(transforms[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue