[ps] Set used level to 3 only if we use native gradients.

Set the used level after performing the checks that the native Type2/3
gradients support the pattern.
This commit is contained in:
Chris Wilson 2008-09-07 12:56:14 +01:00
parent 7439c45039
commit 7960fc94dc

View file

@ -1456,7 +1456,6 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
return FALSE;
}
surface->ps_level_used = CAIRO_PS_LEVEL_3;
extend = cairo_pattern_get_extend (pattern);
/* Radial gradients are currently only supported when one circle
@ -1483,6 +1482,8 @@ _gradient_pattern_supported (cairo_ps_surface_t *surface,
}
}
surface->ps_level_used = CAIRO_PS_LEVEL_3;
return TRUE;
}