drm_format_set_union: Require initialized dst and remove assert

This commit is contained in:
Alexander Orzechowski 2023-05-04 14:16:34 -04:00 committed by Simon Ser
parent d7917d2076
commit 1ee75786b4
3 changed files with 4 additions and 7 deletions

View file

@ -82,7 +82,8 @@ bool wlr_drm_format_set_intersect(struct wlr_drm_format_set *dst,
/**
* Unions DRM format set `a` and `b`, storing in the destination set
* `dst`.
* `dst`. The `dst` must either be zeroed or initialized with other state
* to be replaced.
*
* Returns false on failure.
*/