diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index 94d78752..612e6a8f 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -463,6 +463,7 @@ struct drm_head { struct drm_output { struct weston_output base; + struct drm_backend *backend; uint32_t crtc_id; /* object ID to pass to DRM functions */ int pipe; /* index of CRTC in resource array / bitmasks */ @@ -6104,6 +6105,8 @@ drm_output_create(struct weston_compositor *compositor, const char *name) if (output == NULL) return NULL; + output->backend = b; + weston_output_init(&output->base, compositor, name); output->base.enable = drm_output_enable;