Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Don't unload the OpenGL library before the X display is closed.
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jul 29, 2006
1 parent 2fb8afb commit f890a9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/video/x11/SDL_x11opengl.c
Expand Up @@ -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;
Expand Down

0 comments on commit f890a9f

Please sign in to comment.