[PATCH] gl: Set is_clear to FALSE after map_to_image

Dongyeon Kim <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <11925039.102301338344714431.JavaMail.weblogic@epml23>
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
--
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.