diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-14 19:33:34 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2010-04-14 20:26:48 +0100 |
commit | 6826f020014fff566678a1ff92014211e2a21d4c (patch) | |
tree | f53ee0a3dca35605be3297120408ec78b8b752fe | |
parent | 3814855a649ffca695ce31d97c291496e32d2e26 (diff) |
gl: Don't write error status to the inert object.
Reported-by: Benjamin Otte <otte@redhat.com>
-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); |