Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2003-05-12 12:57:55 +0400
committerWouter van Heyst <larstiq-bforge@larstiq.dyndns.org>2003-05-12 12:57:55 +0400
commitefa0b4ef436a9e0e5392ef2fd08e1f85526816ae (patch)
tree9489c3cb13584bbd4315c7f34ed896804deef216 /intern
parenta6d4f5260ba90d2a18b3186688b8fa91475dead3 (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-xintern/ghost/intern/GHOST_WindowX11.cpp2
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);
}