diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-27 18:35:40 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-05-27 18:35:40 +0100 |
commit | 59bd34e6a3661483f60bb01be8b406a5c38e1131 (patch) | |
tree | bd118177d004ba852e19a5207508ffc177ab1488 | |
parent | 53f086105975c1c2bd4c43a1b0613ebde3580e95 (diff) |
gl: Check for an error device when creating surfaces.
-rw-r--r-- | src/cairo-gl-surface.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c index 96b10e94..ca0b7a27 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -359,6 +359,9 @@ cairo_gl_surface_create (cairo_device_t *abstract_device, width, height); } + if (abstract_device->status) + return _cairo_surface_create_in_error (abstract_device->status); + if (abstract_device->backend->type != CAIRO_DEVICE_TYPE_GL) return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_SURFACE_TYPE_MISMATCH)); |