diff options
Diffstat (limited to 'backend/drm')
-rw-r--r-- | backend/drm/drm.c | 3 | ||||
-rw-r--r-- | backend/drm/renderer.c | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 96b7d93d..1fceff95 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -452,8 +452,7 @@ static bool wlr_drm_connector_set_mode(struct wlr_output *output, crtc->cursor ? crtc->cursor - drm->cursor_planes : -1); conn->state = WLR_DRM_CONN_CONNECTED; - conn->output.current_mode = mode; - wlr_output_update_size(&conn->output, mode->width, mode->height); + wlr_output_update_mode(&conn->output, mode); // Since realloc_crtcs can deallocate planes on OTHER outputs, // we actually need to reinitalise any than has changed diff --git a/backend/drm/renderer.c b/backend/drm/renderer.c index 8a8d7d1f..00182c59 100644 --- a/backend/drm/renderer.c +++ b/backend/drm/renderer.c @@ -24,8 +24,8 @@ bool wlr_drm_renderer_init(struct wlr_drm_backend *drm, return false; } - if (!wlr_egl_init(&renderer->egl, EGL_PLATFORM_GBM_MESA, - GBM_FORMAT_ARGB8888, renderer->gbm)) { + if (!wlr_egl_init(&renderer->egl, EGL_PLATFORM_GBM_MESA, renderer->gbm, + NULL, GBM_FORMAT_ARGB8888)) { goto error_gbm; } |