const graphene_matrix_t *color_matrix,
const graphene_vec4_t *color_offset)
{
- cairo_surface_t *surface = gdk_texture_download_surface (texture);
+ cairo_surface_t *surface;
cairo_surface_t *image_surface;
graphene_vec4_t pixel;
guint32* pixel_data;
return g_object_ref (colorized->texture);
}
+ surface = gdk_texture_download_surface (texture);
image_surface = cairo_surface_map_to_image (surface, NULL);
data = cairo_image_surface_get_data (image_surface);
width = cairo_image_surface_get_width (image_surface);
colorized_list, (GDestroyNotify)colorized_texture_free_list);
}
+ cairo_surface_destroy (surface);
+
return colorized_texture;
}