summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/headless_view.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 0b4d7ce64a..9fa75700ae 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -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
}