summaryrefslogtreecommitdiff
path: root/src/cairo-gl-composite.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2011-11-24 01:08:30 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2011-11-24 10:16:22 +0000
commit2c4f6bbfbcaacea41386c36f42210120ee815055 (patch)
treeed3524977b9898532fced3ba5f2a0147dc91dc8b /src/cairo-gl-composite.c
parent5e4a0bd892263a5801fdaaa9fa5dbbcfc14c211a (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.c5
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) {