summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-05-12 17:01:47 +0200
committerBenjamin Otte <otte@redhat.com>2010-05-17 01:13:46 +0200
commitaa14df0db5e4f236a9668ceda4e148e7d3ba0e9f (patch)
tree45933b8f4b06d63b0529e934cdcee6ce3e1e03ea
parenta3ee0a7f113ed38df66580ff7e38a79759b0c933 (diff)
gl: move operator check
component alpha compositing checks the operator itself
-rw-r--r--src/cairo-gl-surface.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 889e41de..69fcc8ca 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -2011,9 +2011,6 @@ _cairo_gl_surface_composite (cairo_operator_t op,
int num_vertices, i;
cairo_gl_composite_setup_t setup;
- if (! _cairo_gl_operator_is_supported (op))
- return UNSUPPORTED ("unsupported operator");
-
if (mask && mask->has_component_alpha) {
/* Try two-pass component alpha support, or bail. */
return _cairo_gl_surface_composite_component_alpha(op,
@@ -2031,6 +2028,9 @@ _cairo_gl_surface_composite (cairo_operator_t op,
clip_region);
}
+ if (! _cairo_gl_operator_is_supported (op))
+ return UNSUPPORTED ("unsupported operator");
+
memset (&setup, 0, sizeof (setup));
status = _cairo_gl_context_acquire (dst->base.device, &ctx);