diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-11 07:41:52 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-08-11 07:41:52 -0700 |
commit | 225b5e01cbadc46727f77ccf185c711b5f6956a7 (patch) | |
tree | 8dcb04f9b2268d3d63378bae6220fea1256f9d06 /src/map | |
parent | eef51a867974df6279ab0c2003d9660a61ac6c5d (diff) | |
download | qtlocation-mapboxgl-225b5e01cbadc46727f77ccf185c711b5f6956a7.tar.gz |
don't automatically move back to main thread
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/map.cpp | 4 |
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); } |