diff --git a/render/drm_format_set.c b/render/drm_format_set.c index b09a68a4..cbcc0875 100644 --- a/render/drm_format_set.c +++ b/render/drm_format_set.c @@ -1,3 +1,4 @@ +#include #include #include #include @@ -57,6 +58,7 @@ bool wlr_drm_format_set_has(const struct wlr_drm_format_set *set, bool wlr_drm_format_set_add(struct wlr_drm_format_set *set, uint32_t format, uint64_t modifier) { + assert(format != DRM_FORMAT_INVALID); struct wlr_drm_format **ptr = format_set_get_ref(set, format); if (ptr) {