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 <marius.vlad0@gmail.com>
This commit is contained in:
@@ -2008,9 +2008,6 @@ drm_output_prepare_scanout_view(struct drm_output_state *output_state,
|
|||||||
extents->y2 != output->base.y + output->base.height)
|
extents->y2 != output->base.y + output->base.height)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
if (ev->alpha != 1.0f)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
fb = drm_fb_get_from_view(output_state, ev);
|
fb = drm_fb_get_from_view(output_state, ev);
|
||||||
if (!fb)
|
if (!fb)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user