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 is presumed
clear and so returns true from nothing_to_do().
This commit is contained in:
Dongyeon Kim 2012-07-12 18:13:43 +01:00 committed by Chris Wilson
parent 70c2125e2c
commit ac2668dd08

View file

@ -1121,6 +1121,7 @@ _cairo_gl_surface_map_to_image (void *abstract_surface,
free(row);
}
image->base.is_clear = FALSE;
return image;
}