From: havoc Date: Sun, 28 May 2006 21:19:45 +0000 (+0000) Subject: fix bug that caused constant gamma ramp setting in windows in cases of failure X-Git-Tag: xonotic-v0.1.0preview~3967 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=2187ccac6a8006e72851fe291557a06b4914461a;p=xonotic%2Fdarkplaces.git 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 --- 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;