mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 03:41:27 +00:00
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:
parent
5e06b91db0
commit
e0cf6cad56
1 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue