- 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user