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.
This commit is contained in:
Brecht Van Lommel 2010-01-04 16:26:03 +00:00
parent 589b2b4ca8
commit 50de143ca3

@ -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);
}