From 2187ccac6a8006e72851fe291557a06b4914461a Mon Sep 17 00:00:00 2001 From: havoc Date: Sun, 28 May 2006 21:19:45 +0000 Subject: [PATCH] fix bug that caused constant gamma ramp setting in windows in cases of failure git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6403 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_shared.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/vid_shared.c b/vid_shared.c index 77d510b0..22ad1cb7 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -748,9 +748,7 @@ void VID_UpdateGamma(qboolean force, int rampsize) vid_gammaramps = (unsigned short *)Z_Malloc(6 * vid_gammarampsize * sizeof(unsigned short)); vid_systemgammaramps = vid_gammaramps + 3 * vid_gammarampsize; } - Cvar_SetValueQuick(&vid_hardwaregammasupported, VID_GetGamma(vid_systemgammaramps, vid_gammarampsize)); - if (!vid_hardwaregammasupported.integer) - return; + VID_GetGamma(vid_systemgammaramps, vid_gammarampsize); } BOUNDCVAR(v_gamma, 0.1, 5);cachegamma = v_gamma.value; -- 2.39.2