From 01148e4ce9ee6728a61a8c370a3571bc3b4c22f0 Mon Sep 17 00:00:00 2001 From: Brian Koropoff Date: Sun, 9 Jul 2000 05:49:26 +0000 Subject: [PATCH] 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. --- source/vid_glx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vid_glx.c b/source/vid_glx.c index 5108dd0..59c99cc 100644 --- a/source/vid_glx.c +++ b/source/vid_glx.c @@ -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); }