From be4cb6786babca3368b10e2c1c1aaa9eb43e5663 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Wed, 24 Jun 2015 18:40:46 +0300 Subject: 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. --- test/style/resource_loading.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'test') 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); -- cgit v1.2.1