diff options
author | Simon Ser <contact@emersion.fr> | 2020-12-08 23:32:04 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-12-08 23:32:04 +0100 |
commit | 06ab41a160ddac970657254ded4258039fe9d317 (patch) | |
tree | 9b1844a2d22971562e9e21505d1c45c65d5af52c | |
parent | eb5886ddbebd5280b36fff7a5f4a356231b3dba1 (diff) |
backend/drm: fix missing wlr_drm_format.cap
This caused issues with wlr_drm_format_dup.
-rw-r--r-- | backend/drm/renderer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 408effd8..d8fef035 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -100,6 +100,7 @@ static bool init_drm_surface(struct wlr_drm_surface *surf, } format_linear->format = drm_format->format; format_linear->len = 1; + format_linear->cap = 1; format_linear->modifiers[0] = DRM_FORMAT_MOD_LINEAR; drm_format = format_linear; } |