summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-19 16:16:44 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-19 16:16:44 -0400
commit65df83ce4c0ccb410f3d6a9841aeea621483f0be (patch)
tree672295d4811baaeff02230184bea69df1271f03e /test
parentd48e5e72213851e4ffb443eae1b6243f491682c3 (diff)
downloadqtlocation-mapboxgl-65df83ce4c0ccb410f3d6a9841aeea621483f0be.tar.gz
bump mapnik-packaging, remove unnecessary view.make_active calls
Diffstat (limited to 'test')
-rw-r--r--test/headless.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/headless.cpp b/test/headless.cpp
index 4299fd79b9..9a4857dd1a 100644
--- a/test/headless.cpp
+++ b/test/headless.cpp
@@ -91,7 +91,9 @@ TEST_P(HeadlessTest, render) {
map.run();
const std::unique_ptr<uint32_t[]> pixels(new uint32_t[width * height]);
+ map.view.make_active();
glReadPixels(0, 0, width, height, GL_RGBA, GL_UNSIGNED_BYTE, pixels.get());
+ map.view.make_inactive();
const std::string image = util::compress_png(width, height, pixels.get(), true);
util::write_file(actual_image, image);