From 16e420b4dca5325ab295a27103299a916f334b05 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 26 May 2010 19:13:53 +0200 Subject: gl: Remove dependency on composite_t in draw function --- src/cairo-gl-composite.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cairo-gl-composite.c b/src/cairo-gl-composite.c index 809e51dd..38b46cc1 100644 --- a/src/cairo-gl-composite.c +++ b/src/cairo-gl-composite.c @@ -1033,13 +1033,13 @@ _cairo_gl_composite_draw (cairo_gl_context_t *ctx, cairo_gl_shader_t *prev_shader = ctx->current_shader; _cairo_gl_set_shader (ctx, ctx->pre_shader); - _cairo_gl_set_operator (setup->dst, CAIRO_OPERATOR_DEST_OUT, TRUE); + _cairo_gl_set_operator (ctx->current_target, CAIRO_OPERATOR_DEST_OUT, TRUE); _cairo_gl_set_src_alpha (ctx, TRUE); glDrawArrays (GL_TRIANGLES, 0, count); _cairo_gl_set_src_alpha (ctx, FALSE); _cairo_gl_set_shader (ctx, prev_shader); - _cairo_gl_set_operator (setup->dst, setup->op, TRUE); + _cairo_gl_set_operator (ctx->current_target, CAIRO_OPERATOR_ADD, TRUE); glDrawArrays (GL_TRIANGLES, 0, count); } } -- cgit v1.2.3