mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-02 10:50:58 +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;
|
return;
|
||||||
|
|
||||||
Con_Printf("VID_Shutdown\n");
|
Con_Printf("VID_Shutdown\n");
|
||||||
|
XDestroyWindow(x_disp, x_win);
|
||||||
glXDestroyContext(x_disp, ctx);
|
glXDestroyContext(x_disp, ctx);
|
||||||
|
|
||||||
#ifdef HAVE_VIDMODE
|
#ifdef HAVE_VIDMODE
|
||||||
|
@ -170,7 +170,7 @@ VID_Shutdown(void)
|
||||||
XF86VidModeSwitchToMode (x_disp, DefaultScreen (x_disp),
|
XF86VidModeSwitchToMode (x_disp, DefaultScreen (x_disp),
|
||||||
vidmodes[0]);
|
vidmodes[0]);
|
||||||
for (i = 0; i < nummodes; i++) {
|
for (i = 0; i < nummodes; i++) {
|
||||||
if (vidmodes[i]->private) XFree(vidmodes[i]->private);
|
// if (vidmodes[i]->privsize) XFree(vidmodes[i]->private);
|
||||||
}
|
}
|
||||||
XFree(vidmodes);
|
XFree(vidmodes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue