mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-03-20 07:00:37 +01:00
gl: move operator check
component alpha compositing checks the operator itself
This commit is contained in:
parent
a3ee0a7f11
commit
aa14df0db5
1 changed files with 3 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue