- 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:
Wouter van Heyst 2003-05-12 08:57:55 +00:00
parent a6d4f5260b
commit efa0b4ef43
1 changed files with 1 additions and 1 deletions

View File

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