From 94698d2a8341c10a607aff22fdf43fd838389f73 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Tue, 18 Dec 2018 10:27:31 +0200 Subject: [PATCH] libweston/compositor-drm: No need to test for invalid alpha for the view This is redundant and is already being checked drm_fb_get_from_view() Signed-off-by: Marius Vlad --- libweston/compositor-drm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/libweston/compositor-drm.c b/libweston/compositor-drm.c index c097d6be..c81ee4c7 100644 --- a/libweston/compositor-drm.c +++ b/libweston/compositor-drm.c @@ -2008,9 +2008,6 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state, extents->y2 != output->base.y + output->base.height) return NULL; - if (ev->alpha != 1.0f) - return NULL; - fb = drm_fb_get_from_view(output_state, ev); if (!fb) return NULL;