Merge branch 'fix-context-shutdown-merge' into libuv-0.10-fix-context-shutdown

Conflicts:
	src/map/map.cpp
This commit is contained in:
Mike Morris
2014-09-10 18:53:20 -04:00
9 changed files with 58 additions and 1 deletions

View File

@@ -181,6 +181,19 @@ void HeadlessView::make_active() {
#endif
}
void HeadlessView::make_inactive() {
#if MBGL_USE_CGL
CGLError error = CGLSetCurrentContext(nullptr);
if (error) {
fprintf(stderr, "Removing OpenGL context failed\n");
}
#endif
#if MBGL_USE_GLX
// no-op
#endif
}
void HeadlessView::swap() {}
unsigned int HeadlessView::root_fbo() {