- Destroy the glx context _before_ the X window.

Fixes long standing crash for several DRI drivers.
Thanks to Jacek Popławski for hunting this bug down and supplying the patch.
This commit is contained in:
2003-05-12 08:57:55 +00:00
parent a6d4f5260b
commit efa0b4ef43

View File

@@ -492,13 +492,13 @@ GHOST_WindowX11::
XFreeCursor(m_display, m_custom_cursor); XFreeCursor(m_display, m_custom_cursor);
} }
XDestroyWindow(m_display, m_window);
if (m_context) { if (m_context) {
if (m_context == s_firstContext) { if (m_context == s_firstContext) {
s_firstContext = NULL; s_firstContext = NULL;
} }
glXDestroyContext(m_display, m_context); glXDestroyContext(m_display, m_context);
} }
XDestroyWindow(m_display, m_window);
XFree(m_visual); XFree(m_visual);
} }