mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-10 06:42:26 +00:00
This fixes a bug with nvidia cards that can cause other GL programs to run very slowly. Thanks to rpete for pointing out the problem.
This commit is contained in:
parent
69c97f84bd
commit
01148e4ce9
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ VID_Shutdown(void)
|
|||
return;
|
||||
|
||||
Con_Printf("VID_Shutdown\n");
|
||||
|
||||
XDestroyWindow(x_disp, x_win);
|
||||
glXDestroyContext(x_disp, ctx);
|
||||
|
||||
#ifdef HAVE_VIDMODE
|
||||
|
@ -170,7 +170,7 @@ VID_Shutdown(void)
|
|||
XF86VidModeSwitchToMode (x_disp, DefaultScreen (x_disp),
|
||||
vidmodes[0]);
|
||||
for (i = 0; i < nummodes; i++) {
|
||||
if (vidmodes[i]->private) XFree(vidmodes[i]->private);
|
||||
// if (vidmodes[i]->privsize) XFree(vidmodes[i]->private);
|
||||
}
|
||||
XFree(vidmodes);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue