[cairo] [PATCH] gl: Set is_clear to FALSE after map_to_image

Dongyeon Kim dy5.kim at samsung.com
Tue May 29 19:25:14 PDT 2012


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.
---
 src/cairo-gl-surface.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/cairo-gl-surface.c b/src/cairo-gl-surface.c
index a6093b4..a6240b2 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;
 }
 
-- 
1.7.4.1


More information about the cairo mailing list