From 2c4f6bbfbcaacea41386c36f42210120ee815055 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Thu, 24 Nov 2011 01:08:30 +0000 Subject: gl: Prevent the traps compositor from exploding Signed-off-by: Chris Wilson --- src/cairo-gl-composite.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cairo-gl-composite.c') 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) { -- cgit v1.2.3