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:
Félix Poisot 2025-11-28 18:23:30 +00:00 committed by Simon Ser
parent 32d5fc1d11
commit 450d90a55d

View file

@ -88,8 +88,8 @@ struct wlr_color_transform *wlr_color_transform_init_pipeline(
}
wlr_color_transform_init(&tx->base, COLOR_TRANSFORM_PIPELINE);
// TODO: flatten nested pipeline transforms
for (size_t i = 0; i < len; i++) {
assert(transforms[i] != NULL);
copy[i] = wlr_color_transform_ref(transforms[i]);
}