From 50ade3671fb6776379b0923ca230e7105f25bbc2 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 10 Apr 2020 14:54:33 +0200 Subject: output: check for buffer size compatibility in common code Instead of checking for buffer size compatibility in each backend, centralize the check in wlr_output itself. --- backend/drm/drm.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'backend/drm') diff --git a/backend/drm/drm.c b/backend/drm/drm.c index 01da2d2c..9be67244 100644 --- a/backend/drm/drm.c +++ b/backend/drm/drm.c @@ -365,9 +365,6 @@ static bool test_buffer(struct wlr_drm_connector *conn, if (attribs.flags != 0) { return false; } - if (attribs.width != output->width || attribs.height != output->height) { - return false; - } if (!wlr_drm_format_set_has(&crtc->primary->formats, attribs.format, attribs.modifier)) { -- cgit v1.2.3