diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-24 01:08:30 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-11-24 10:16:22 +0000 |
commit | 2c4f6bbfbcaacea41386c36f42210120ee815055 (patch) | |
tree | ed3524977b9898532fced3ba5f2a0147dc91dc8b /src/cairo-gl-composite.c | |
parent | 5e4a0bd892263a5801fdaaa9fa5dbbcfc14c211a (diff) |
gl: Prevent the traps compositor from exploding
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/cairo-gl-composite.c')
-rw-r--r-- | src/cairo-gl-composite.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c index a27b596e..90c189aa 100644 --- a/src/cairo-gl-composite.c +++ b/src/cairo-gl-composite.c @@ -476,8 +476,9 @@ _cairo_gl_composite_begin (cairo_gl_composite_t *setup, glEnable (GL_BLEND); - component_alpha = ((setup->mask.type == CAIRO_GL_OPERAND_TEXTURE) && - setup->mask.texture.attributes.has_component_alpha); + component_alpha = + setup->mask.type == CAIRO_GL_OPERAND_TEXTURE && + setup->mask.texture.attributes.has_component_alpha; /* Do various magic for component alpha */ if (component_alpha) { |