[gl] Initialize has_alpha in the image surface composite fastpath.

Fixes bilevel-image, set-source, and zero-alpha.
This commit is contained in:
Eric Anholt 2009-06-01 13:36:32 -07:00
parent d3a478b6c0
commit 69a150b7d8

View file

@ -948,6 +948,10 @@ _cairo_gl_pattern_image_texture_setup (cairo_gl_composite_operand_t *operand,
operand->type = OPERAND_TEXTURE;
operand->operand.texture.tex = tex;
operand->operand.texture.surface = NULL;
/* The textures we create always have appropriate alpha channels --
* we aren't uploading x8 channels to a8 channels.
*/
operand->operand.texture.has_alpha = TRUE;
attributes->matrix = src->matrix;
attributes->extend = src->extend;
attributes->filter = src->filter;