diff options
-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 708bf346..1fef8ab9 100644 --- a/src/cairo-gl-surface.c +++ b/src/cairo-gl-surface.c @@ -611,6 +611,9 @@ cairo_gl_surface_set_size (cairo_surface_t *abstract_surface, cairo_gl_surface_t *surface = (cairo_gl_surface_t *) abstract_surface; cairo_status_t status; + if (unlikely (abstract_surface->status)) + return; + if (! _cairo_surface_is_gl (abstract_surface) || surface->fb) { status = _cairo_surface_set_error (abstract_surface, CAIRO_STATUS_SURFACE_TYPE_MISMATCH); |