mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 12:55:58 +01:00
wlr_drm_format_set_intersect: Clear destination before trying to write to it
This commit is contained in:
parent
300bd80772
commit
47e175ae7f
1 changed files with 1 additions and 0 deletions
|
@ -221,6 +221,7 @@ bool wlr_drm_format_set_intersect(struct wlr_drm_format_set *dst,
|
||||||
// When the two formats have no common modifier, keep
|
// When the two formats have no common modifier, keep
|
||||||
// intersecting the rest of the formats: they may be compatible
|
// intersecting the rest of the formats: they may be compatible
|
||||||
// with each other
|
// with each other
|
||||||
|
out.formats[out.len] = (struct wlr_drm_format){0};
|
||||||
if (!wlr_drm_format_intersect(&out.formats[out.len],
|
if (!wlr_drm_format_intersect(&out.formats[out.len],
|
||||||
&a->formats[i], &b->formats[j])) {
|
&a->formats[i], &b->formats[j])) {
|
||||||
wlr_drm_format_set_finish(&out);
|
wlr_drm_format_set_finish(&out);
|
||||||
|
|
Loading…
Reference in a new issue