drop clear_buffers and glx make_inactive from descrtuctor

This commit is contained in:
Mike Morris
2014-09-11 09:48:12 -04:00
parent d9ccc501c3
commit f93a230e97

View File

@@ -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);