Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Don't unload the OpenGL library before the X display is closed.

  • Loading branch information
slouken committed Jul 29, 2006
1 parent 2fb8afb commit f890a9f7a80be822def178bee0c711344744083b
Showing with 5 additions and 1 deletion.
  1. +5 −1 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;

0 comments on commit f890a9f

Please sign in to comment.