diff options
author | Benjamin Otte <otte@redhat.com> | 2010-05-26 19:13:53 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2010-06-07 13:37:47 +0200 |
commit | 16e420b4dca5325ab295a27103299a916f334b05 (patch) | |
tree | 392dbe632debf248c164c39a7f99b9794cce1723 | |
parent | e46215ec6b94355b741acf5dfdd264d6396b4bc8 (diff) |
gl: Remove dependency on composite_t in draw function
-rw-r--r-- | src/cairo-gl-composite.c | 4 |
1 files 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); } } |