glXDestroyContext, XFree, XCloseDisplay
This commit is contained in:
@@ -151,6 +151,12 @@ HeadlessView::~HeadlessView() {
|
||||
#if MBGL_USE_CGL
|
||||
CGLDestroyContext(gl_context);
|
||||
#endif
|
||||
|
||||
#if MBGL_USE_GLX
|
||||
glXDestroyContext(x_display, gl_context);
|
||||
XFree(x_info);
|
||||
XCloseDisplay(x_display);
|
||||
#endif
|
||||
}
|
||||
|
||||
void HeadlessView::notify_map_change(mbgl::MapChange /*change*/, mbgl::timestamp /*delay*/) {
|
||||
|
||||
Reference in New Issue
Block a user