summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-11 07:41:52 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-08-11 07:41:52 -0700
commit225b5e01cbadc46727f77ccf185c711b5f6956a7 (patch)
tree8dcb04f9b2268d3d63378bae6220fea1256f9d06 /src/map
parenteef51a867974df6279ab0c2003d9660a61ac6c5d (diff)
downloadqtlocation-mapboxgl-225b5e01cbadc46727f77ccf185c711b5f6956a7.tar.gz
don't automatically move back to main thread
Diffstat (limited to 'src/map')
-rw-r--r--src/map/map.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/map.cpp b/src/map/map.cpp
index 7936eaf300..ef7b9548bd 100644
--- a/src/map/map.cpp
+++ b/src/map/map.cpp
@@ -34,7 +34,7 @@ Map::Map(View& view)
: loop(std::make_shared<uv::loop>()),
view(view),
transform(view),
- fileSource(std::make_shared<FileSource>(loop)),
+ fileSource(std::make_shared<FileSource>()),
style(std::make_shared<Style>()),
glyphAtlas(std::make_shared<GlyphAtlas>(1024, 1024)),
glyphStore(std::make_shared<GlyphStore>(fileSource)),
@@ -201,7 +201,7 @@ void Map::setStyleURL(const std::string &url) {
} else {
Log::Error(Event::Setup, "loading style failed: %d (%s)", res->code, res->error_message.c_str());
}
- });
+ }, loop);
}