summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2009-09-03 17:38:00 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2009-09-03 20:12:40 +0100
commit6ce200da9d01a85a1de576229e75732db65a8b70 (patch)
tree8a3ab4ebea439f1c7382ffcd82dd5ac98c0c93ca
parentd3aeafb406da7bf69e9bf24e18a5975780a7a987 (diff)
[gl] Assert that the error is impossible.
As we created the image, it should not need coercing into a suitable format and so we should be able to upload it without failure.
-rw-r--r--src/cairo-gl-surface.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 4b127b90..22efbd4e 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -780,8 +780,8 @@ _cairo_gl_surface_release_dest_image (void *abstract_surface,
0, 0,
image->width, image->height,
image_rect->x, image_rect->y);
- if (status)
- status = _cairo_surface_set_error (abstract_surface, status);
+ /* as we created the image, its format should be directly applicable */
+ assert (status == CAIRO_STATUS_SUCCESS);
cairo_surface_destroy (&image->base);
}