Also release the current context

This commit is contained in:
John Firebaugh
2014-09-03 14:50:03 -07:00
parent 01d9d43f01
commit 3eb05efde2

View File

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