don't automatically move back to main thread

This commit is contained in:
Konstantin Käfer
2014-08-11 07:41:52 -07:00
parent eef51a8679
commit 225b5e01cb
3 changed files with 6 additions and 9 deletions

View File

@@ -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);
}