From 50de143ca30ad8211668d5e74cbda46fc695348e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 4 Jan 2010 16:26:03 +0000 Subject: [PATCH] Fix #20558: open file with new window setup corrupts text and icons in the UI. On X11, the opengl context was destroyed when closing a window. This lead to the text and icon textures being lost (among other things), now the opengl context is kept like on Win/Mac. --- intern/ghost/intern/GHOST_WindowX11.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/intern/ghost/intern/GHOST_WindowX11.cpp b/intern/ghost/intern/GHOST_WindowX11.cpp index d9c2654f446..25d6c5980f6 100644 --- a/intern/ghost/intern/GHOST_WindowX11.cpp +++ b/intern/ghost/intern/GHOST_WindowX11.cpp @@ -1226,10 +1226,7 @@ GHOST_WindowX11:: if(m_xtablet.EraserDevice) XCloseDevice(m_display, m_xtablet.EraserDevice); - if (m_context) { - if (m_context == s_firstContext) { - s_firstContext = NULL; - } + if (m_context != s_firstContext) { glXDestroyContext(m_display, m_context); }