[cairo] [PATCH 35/39] [OpenVG] do not avoid reuploading the data when only the data pointer for the image surface has changed.

tardyp at gmail.com tardyp at gmail.com
Fri Jul 10 10:02:37 PDT 2009


From: Øyvind Kolås <pippin at gimp.org>

---
 src/cairo-openvg-surface.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/cairo-openvg-surface.c b/src/cairo-openvg-surface.c
index bed9902..ce3086c 100644
--- a/src/cairo-openvg-surface.c
+++ b/src/cairo-openvg-surface.c
@@ -523,8 +523,7 @@ _cairo_openvg_setup_surface_source (cairo_openvg_surface_t  *vgsurface,
     for (i=0; i<MAX_IMAGES;i++)
       {
         if (vgsurface->images[i].vg_image &&
-            (vgsurface->images[i].cairo_image == image || 
-             vgsurface->images[i].data == image->data))
+            vgsurface->images[i].cairo_image == image)
           {
             vgsurface->source_image = vgsurface->images[i].vg_image;
             /*fprintf (stderr, "found in cache!\n");*/
-- 
1.6.0.4



More information about the cairo mailing list