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");
glXDestroyContext(x_disp, ctx);
if(x_disp && ctx)
{
glXDestroyContext(x_disp, ctx);
ctx = NULL;
}
#ifdef HAS_DGA
if (hasvidmode) {
int i;
@ -174,8 +179,6 @@ VID_Shutdown(void)
#endif
x11_close_display();
}
static void
signal_handler(int sig)
{