[cairo] [PATCH] gl: Set is_clear flag to FALSE after map_to_image
Dongyeon Kim
dy5.kim at samsung.com
Thu Jul 12 01:35:24 PDT 2012
commit ad26c7e70e768032951409174193fc5bd70cacfb
Author: Dongyeon Kim <dy5.kim at samsung.com>
Date: Thu Jul 12 17:00:28 2012 +0900
gl: Set is_clear flag to FALSE after map_to_image
In _cairo_gl_surface_map_to_image(), the image surface data has been filled by glReadPixels,
so is_clear flag should be set to FALSE.
Otherwise mapped image surface does not get drawn as it returns true in nothing_to_do().
diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index 6b9bc67..8b63fd2 100644
--- a/src/cairo-gl-surface.c
+++ b/src/cairo-gl-surface.c
@@ -1121,6 +1121,7 @@ _cairo_gl_surface_map_to_image (void *abstract_surface,
free(row);
}
+ image->base.is_clear = FALSE;
return image;
}
More information about the cairo
mailing list