From 151c4366503110a3c5f63eac54f87e72a33138b0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ville=20Syrj=C3=A4l=C3=A4?= Date: Fri, 16 Nov 2012 11:48:46 +0200 Subject: [PATCH] compositor-drm: Don't use overlay when surface alpha != 1.0f MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Assume that overlays can't handle alpha blending even with a constant alpha factor. Signed-off-by: Ville Syrjälä --- src/compositor-drm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index f360568..2dca85c 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -596,6 +596,9 @@ drm_output_prepare_overlay_surface(struct weston_output *output_base, if (es->buffer == NULL) return NULL; + if (es->alpha != 1.0f) + return NULL; + if (wl_buffer_is_shm(es->buffer)) return NULL; -- 2.7.4