summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMike Morris <michael.patrick.morris@gmail.com>2014-09-11 09:48:12 -0400
committerMike Morris <michael.patrick.morris@gmail.com>2014-09-11 09:48:12 -0400
commitf93a230e977522eba42046a2f6511cb776861aa7 (patch)
tree28172741e093d3524a2e6f3e1a2b67ac71aff53f /common
parentd9ccc501c3d61f928479faf78ee21eb81b8cbdf3 (diff)
downloadqtlocation-mapboxgl-f93a230e977522eba42046a2f6511cb776861aa7.tar.gz
drop clear_buffers and glx make_inactive from descrtuctor
Diffstat (limited to 'common')
-rw-r--r--common/headless_view.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/common/headless_view.cpp b/common/headless_view.cpp
index 9fa75700ae..ff903939b7 100644
--- a/common/headless_view.cpp
+++ b/common/headless_view.cpp
@@ -148,14 +148,11 @@ void HeadlessView::clear_buffers() {
}
HeadlessView::~HeadlessView() {
- clear_buffers();
-
#if MBGL_USE_CGL
CGLDestroyContext(gl_context);
#endif
#if MBGL_USE_GLX
- glXMakeCurrent(x_display, None, NULL);
glXDestroyContext(x_display, gl_context);
XFree(x_info);
XCloseDisplay(x_display);