summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <thiago@mapbox.com>2015-06-24 18:40:46 +0300
committerThiago Marcos P. Santos <thiago@mapbox.com>2015-06-25 16:26:21 +0300
commitbe4cb6786babca3368b10e2c1c1aaa9eb43e5663 (patch)
treeea3def9013e1666d92d35cff261e0f9bff16beba /test
parentb56c356de71a3edec76984ddf4202c92930bd17b (diff)
downloadqtlocation-mapboxgl-be4cb6786babca3368b10e2c1c1aaa9eb43e5663.tar.gz
Make the FileSource available from the ThreadContext
For now we set the FileSource for the Worker context but in the future after fixing #1664 we can assert() that FileSource are set only for the Map thread context.
Diffstat (limited to 'test')
-rw-r--r--test/style/resource_loading.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/style/resource_loading.cpp b/test/style/resource_loading.cpp
index 158af25909..c5abf7b063 100644
--- a/test/style/resource_loading.cpp
+++ b/test/style/resource_loading.cpp
@@ -29,6 +29,7 @@ public:
envScope_(env_, ThreadType::Map, "Map"),
data_(view, MapMode::Still),
callback_(callback) {
+ util::ThreadContext::setFileSource(&fileSource);
data_.transform.resize(1000, 1000, 1.0, 1000, 1000);
data_.transform.setLatLngZoom({0, 0}, 16);