From efa0b4ef436a9e0e5392ef2fd08e1f85526816ae Mon Sep 17 00:00:00 2001 From: Wouter van Heyst Date: Mon, 12 May 2003 08:57:55 +0000 Subject: - Destroy the glx context _before_ the X window. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes long standing crash for several DRI drivers. Thanks to Jacek Popławski for hunting this bug down and supplying the patch. --- intern/ghost/intern/GHOST_WindowX11.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern') 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); } -- cgit v1.2.3