diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2014-09-03 14:50:03 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2014-09-03 14:50:03 -0700 |
commit | 3eb05efde259d10714d8d0539a4fc6dba77a58d3 (patch) | |
tree | 868039edeed5ab42827be1d8d4a6157b0137faed /common | |
parent | 01d9d43f01332c715cdfb8d0a01e4437cd960155 (diff) | |
download | qtlocation-mapboxgl-3eb05efde259d10714d8d0539a4fc6dba77a58d3.tar.gz |
Also release the current context
Diffstat (limited to 'common')
-rw-r--r-- | common/headless_view.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp index f771be302d..f790d90cec 100644 --- a/common/headless_view.cpp +++ b/common/headless_view.cpp @@ -153,6 +153,7 @@ HeadlessView::~HeadlessView() { #endif #if MBGL_USE_GLX + glXMakeCurrent(x_display, None, NULL); glXDestroyContext(x_display, gl_context); XFree(x_info); XCloseDisplay(x_display); |