From 69a150b7d8115babf2c60d7c5f7ca340162dc098 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Mon, 1 Jun 2009 13:36:32 -0700 Subject: [PATCH] [gl] Initialize has_alpha in the image surface composite fastpath. Fixes bilevel-image, set-source, and zero-alpha. --- src/cairo-gl-surface.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index 5bcdff18c..c052794ab 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -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;