diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-05 15:41:23 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2011-12-05 17:17:26 +0000 |
commit | 3b1151f60d28d4e0de7160043cf24579751425cc (patch) | |
tree | 6e98524117aa0cdfbba08239fbbc990b04d568ba | |
parent | 0ce8dad9a2330575276b28a37098fe6cc4bf877f (diff) |
gl: Substitute the white source for the default pattern
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/cairo-gl-source.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-gl-source.c b/src/cairo-gl-source.c index 01064680..00c68dbc 100644 --- a/src/cairo-gl-source.c +++ b/src/cairo-gl-source.c @@ -65,6 +65,9 @@ _cairo_gl_pattern_to_source (cairo_surface_t *dst, cairo_gl_source_t *source; cairo_int_status_t status; + if (pattern == NULL) + return _cairo_gl_white_source (); + source = malloc (sizeof (*source)); if (unlikely (source == NULL)) return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_NO_MEMORY)); |