From 89ab980b38b549c71a59d2bb845d8b5ef0e45ef6 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 29 Jul 2006 03:56:35 +0000 Subject: [PATCH] Don't unload the OpenGL library before the X display is closed. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%402000 --- src/video/x11/SDL_x11opengl.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/video/x11/SDL_x11opengl.c b/src/video/x11/SDL_x11opengl.c index 787c9043c..37fa0a0ea 100644 --- a/src/video/x11/SDL_x11opengl.c +++ b/src/video/x11/SDL_x11opengl.c @@ -288,7 +288,11 @@ X11_GL_Shutdown(_THIS) return; } - X11_GL_UnloadLibrary(_this); + /* Don't actually unload the library, since it may have registered + * X11 shutdown hooks, per the notes at: + * http://dri.sourceforge.net/doc/DRIuserguide.html + * //X11_GL_UnloadLibrary(_this); + */ SDL_free(_this->gl_data); _this->gl_data = NULL;