summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-26 17:32:14 +0200
committerBenjamin Otte <otte@redhat.com>2010-06-07 13:37:47 +0200
commit53fd451f85974d2ed0d6f29a0a0549fd4c7035fe (patch)
treee3b0cd101693dfaceedd3bd5484601473ec8037b
parent1b3675fc4b9c7f6ad4d9edd9b27bee10c2502b81 (diff)
gl: Avoid redundant mask setup
The mask doesn't change, so no need to set it up twice
-rw-r--r--src/cairo-gl-composite.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c
index 5704bbdb..d21a4cb7 100644
--- a/src/cairo-gl-composite.c
+++ b/src/cairo-gl-composite.c
@@ -1055,13 +1055,11 @@ _cairo_gl_composite_draw (cairo_gl_context_t *ctx,
_cairo_gl_set_shader (ctx, ctx->pre_shader);
_cairo_gl_set_operator (setup->dst, CAIRO_OPERATOR_DEST_OUT, TRUE);
_cairo_gl_set_src_alpha_operand (ctx, setup);
- _cairo_gl_set_component_alpha_mask_operand (ctx, setup);
glDrawArrays (GL_TRIANGLES, 0, count);
_cairo_gl_set_shader (ctx, prev_shader);
_cairo_gl_set_operator (setup->dst, setup->op, TRUE);
_cairo_gl_set_src_operand (ctx, setup);
- _cairo_gl_set_component_alpha_mask_operand (ctx, setup);
glDrawArrays (GL_TRIANGLES, 0, count);
}
}