mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-07 21:28:02 +02:00
[gl] Initialize has_alpha in the image surface composite fastpath.
Fixes bilevel-image, set-source, and zero-alpha.
This commit is contained in:
parent
d3a478b6c0
commit
69a150b7d8
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue