From 891dd214dea0355e3ffc937ae747abbcaf3a8264 Mon Sep 17 00:00:00 2001 From: havoc Date: Thu, 22 Jun 2006 05:58:02 +0000 Subject: [PATCH] fix some stupid bugs in gamma update code (why didn't I remove the forcenextframe variable?) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6482 d7cf8633-e32d-0410-b094-e92efae38249 --- vid_shared.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vid_shared.c b/vid_shared.c index 78a3e0a0..18591664 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -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; -- 2.39.2