Comment 66 for bug 1098334

Revision history for this message
In , High-entropy (high-entropy) wrote :

(In reply to comment #52)
> How about:
>
> diff --git a/src/sna/gen4_render.c b/src/sna/gen4_render.c
> index cc1778a..0a59681 100644
> --- a/src/sna/gen4_render.c
> +++ b/src/sna/gen4_render.c
> @@ -1895,6 +1895,9 @@ gen4_render_composite(struct sna *sna,
> tmp->has_component_alpha = false;
> tmp->need_magic_ca_pass = false;
>
> + if (!mask)
> + mask = sna->render.white_picture;
> +
> if (mask) {
> if (mask->componentAlpha && PICT_FORMAT_RGB(mask->format)) {
> tmp->has_component_alpha = true;

Doesn't fix it, unfortunately.