- 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:
parent
a6d4f5260b
commit
efa0b4ef43
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue