diff --git a/benchmark/compare_images.hpp b/benchmark/compare_images.hpp index 0f0c0f14d..0f002b2b2 100644 --- a/benchmark/compare_images.hpp +++ b/benchmark/compare_images.hpp @@ -23,8 +23,11 @@ namespace benchmark { throw mapnik::image_reader_exception("Failed to load: " + src_fn); } - image_rgba8 const& dest = util::get(reader1->read(0,0,reader1->width(), reader1->height())); - image_rgba8 const& src = util::get(reader1->read(0,0,reader1->width(), reader1->height())); + const image_any desc_any = reader1->read(0,0,reader1->width(), reader1->height()); + const image_any src_any = reader2->read(0,0,reader2->width(), reader2->height()); + + image_rgba8 const& dest = util::get(desc_any); + image_rgba8 const& src = util::get(src_any); unsigned int width = src.width(); unsigned int height = src.height(); diff --git a/benchmark/data/polygon_clipping_boost.png b/benchmark/data/polygon_clipping_boost.png index 6c38b39f7..21760b752 100644 Binary files a/benchmark/data/polygon_clipping_boost.png and b/benchmark/data/polygon_clipping_boost.png differ diff --git a/benchmark/data/polygon_clipping_clipper.png b/benchmark/data/polygon_clipping_clipper.png index 8d1b11e9c..621cf3895 100644 Binary files a/benchmark/data/polygon_clipping_clipper.png and b/benchmark/data/polygon_clipping_clipper.png differ