Fix for X error at uquake-glx exit. taniwha, I don't know why you removed this,

but I decided to commit first and ask questions later since you're not anywhere
to be found.
This commit is contained in:
Dan Olson 2000-04-01 06:05:03 +00:00
parent 5e06b91db0
commit e0cf6cad56

View file

@ -155,7 +155,12 @@ VID_Shutdown(void)
{ {
Con_Printf("VID_Shutdown\n"); Con_Printf("VID_Shutdown\n");
glXDestroyContext(x_disp, ctx); if(x_disp && ctx)
{
glXDestroyContext(x_disp, ctx);
ctx = NULL;
}
#ifdef HAS_DGA #ifdef HAS_DGA
if (hasvidmode) { if (hasvidmode) {
int i; int i;
@ -174,8 +179,6 @@ VID_Shutdown(void)
#endif #endif
x11_close_display(); x11_close_display();
} }
static void static void
signal_handler(int sig) signal_handler(int sig)
{ {