add GLX support to HeadlessView::make_inactive

This commit is contained in:
Mike Morris
2014-09-10 19:42:06 -04:00
parent 57fb4b984d
commit d9ccc501c3

View File

@@ -190,7 +190,9 @@ void HeadlessView::make_inactive() {
#endif
#if MBGL_USE_GLX
// no-op
if (!glXMakeCurrent(x_display, None, nullptr)) {
fprintf(stderr, "Removing OpenGL context failed\n");
}
#endif
}