summaryrefslogtreecommitdiff
path: root/src/cairo-gl-surface.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-gl-surface.c')
-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 665ab244a..cf0f4e75d 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -1583,11 +1583,11 @@ _cairo_gl_surface_map_to_image (void *abstract_surface,
/* If the original surface has not been modified or
* is clear, we can avoid downloading data. */
-/* if (surface->base.is_clear || surface->base.serial == 0) {
+ if (surface->base.is_clear || surface->base.serial == 0) {
status = _cairo_gl_context_release (ctx, status);
return image;
}
-*/
+
/* This is inefficient, as we'd rather just read the thing without making
* it the destination. But then, this is the fallback path, so let's not
* fall back instead.