mirror of
https://git.code.sf.net/p/quake/quakeforge-old
synced 2024-11-22 11:51:17 +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");
|
Con_Printf("VID_Shutdown\n");
|
||||||
|
|
||||||
|
if(x_disp && ctx)
|
||||||
|
{
|
||||||
glXDestroyContext(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)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue