From d9ccc501c3d61f928479faf78ee21eb81b8cbdf3 Mon Sep 17 00:00:00 2001 From: Mike Morris Date: Wed, 10 Sep 2014 19:42:06 -0400 Subject: add GLX support to HeadlessView::make_inactive --- common/headless_view.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'common') 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 } -- cgit v1.2.1