]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix some stupid bugs in gamma update code (why didn't I remove the forcenextframe...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Jun 2006 05:58:02 +0000 (05:58 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 22 Jun 2006 05:58:02 +0000 (05:58 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6482 d7cf8633-e32d-0410-b094-e92efae38249

vid_shared.c

index 78a3e0a08a5c42357a8436f4a3be47db4a36a38f..1859166466e64752206aca6c16397a205bff2969 100644 (file)
@@ -716,7 +716,6 @@ void VID_UpdateGamma(qboolean force, int rampsize)
 {
        cvar_t *c;
        float f;
-       static int forcenextframe = false;
 
        // LordHavoc: don't mess with gamma tables if running dedicated
        if (cls.state == ca_dedicated)
@@ -756,7 +755,7 @@ void VID_UpdateGamma(qboolean force, int rampsize)
        cachecolorenable = v_color_enable.integer;
        cachehwgamma = vid_activewindow && v_hwgamma.integer;
 
-       forcenextframe = false;
+       gamma_forcenextframe = false;
 
        if (cachehwgamma)
        {
@@ -797,7 +796,7 @@ void VID_UpdateGamma(qboolean force, int rampsize)
                        static float n[3], nd[3], nt[3];
                        static int init = true;
                        unsigned short *ramp;
-                       forcenextframe = true;
+                       gamma_forcenextframe = true;
                        if (init)
                        {
                                init = false;