diff options
author | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-10 19:42:06 -0400 |
---|---|---|
committer | Mike Morris <michael.patrick.morris@gmail.com> | 2014-09-10 19:42:06 -0400 |
commit | d9ccc501c3d61f928479faf78ee21eb81b8cbdf3 (patch) | |
tree | a65d4918623b0330f31fac9b3396a1a78db89a71 /common | |
parent | 57fb4b984d681fd56c58edc1840cc95c0582f503 (diff) | |
download | qtlocation-mapboxgl-d9ccc501c3d61f928479faf78ee21eb81b8cbdf3.tar.gz |
add GLX support to HeadlessView::make_inactive
Diffstat (limited to 'common')
-rw-r--r-- | common/headless_view.cpp | 4 |
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 } |