]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix bug that caused constant gamma ramp setting in windows in cases of failure
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 May 2006 21:19:45 +0000 (21:19 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 28 May 2006 21:19:45 +0000 (21:19 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6403 d7cf8633-e32d-0410-b094-e92efae38249

vid_shared.c

index 77d510b0864ee1e6ad70918402bc595d973e9ace..22ad1cb7ff4dd20a713400a83732421f8166fc9e 100644 (file)
@@ -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;