forked from bartvdbraak/blender
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:
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user