summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-10 19:42:06 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-10 19:42:06 -0400
commitd9ccc501c3d61f928479faf78ee21eb81b8cbdf3 (patch)
treea65d4918623b0330f31fac9b3396a1a78db89a71 /common
parent57fb4b984d681fd56c58edc1840cc95c0582f503 (diff)
downloadqtlocation-mapboxgl-d9ccc501c3d61f928479faf78ee21eb81b8cbdf3.tar.gz
add GLX support to HeadlessView::make_inactive
Diffstat (limited to 'common')
-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
}