Move notify_map_change() from a global callback, to a callback in

View.

This allows for their to me more than one Map object alive at a
time.

Fixes mapbox/mapbox-gl-native#346

Conflicts:
	common/glfw_view.hpp
	include/llmr/map/view.hpp
	include/mbgl/map/transform.hpp
	src/map/map.cpp
	src/map/transform.cpp
	test/headless.cpp
This commit is contained in:
Leith Bade
2014-06-24 16:19:47 +10:00
committed by Mike Morris
parent 71549e7b93
commit 7a4c914d05

View File

@@ -156,7 +156,6 @@ void Map::cleanup(uv_async_t *async) {
void Map::terminate() {
view.make_active();
painter.terminate();
view.make_inactive();
}
void Map::render(uv_async_t *async) {