xcb: Short-circuit multiplying the alpha mask by 1.0

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2011-07-29 12:33:07 +01:00
parent 4032c86127
commit 7c6e1b8db8

View file

@ -1666,6 +1666,9 @@ static void blt_in(void *closure,
xcb_render_color_t color;
xcb_rectangle_t rect;
if (coverage == 0xffff)
return;
color.red = color.green = color.blue = 0;
color.alpha = coverage;