diff options
author | Wouter van Heyst <larstiq-bforge@larstiq.dyndns.org> | 2003-05-12 12:57:55 +0400 |
---|---|---|
committer | Wouter van Heyst <larstiq-bforge@larstiq.dyndns.org> | 2003-05-12 12:57:55 +0400 |
commit | efa0b4ef436a9e0e5392ef2fd08e1f85526816ae (patch) | |
tree | 9489c3cb13584bbd4315c7f34ed896804deef216 /intern | |
parent | a6d4f5260ba90d2a18b3186688b8fa91475dead3 (diff) |
- 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.
Diffstat (limited to 'intern')
-rwxr-xr-x | intern/ghost/intern/GHOST_WindowX11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index 1503dbe9ffc..828caaac782 100755 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -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); } |