drop clear_buffers and glx make_inactive from descrtuctor
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user