cl.viewangles[PITCH] = 0;
}
+static int gamma_forcenextframe = false;
static float cachegamma, cachebrightness, cachecontrast, cacheblack[3], cachegrey[3], cachewhite[3];
static int cachecolorenable, cachehwgamma;
#define BOUNDCVAR(cvar, m1, m2) c = &(cvar);f = bound(m1, c->value, m2);if (c->value != f) Cvar_SetValueQuick(c, f);
return;
if (!force
- && !forcenextframe
+ && !gamma_forcenextframe
&& !v_psycho.integer
&& cachehwgamma == (vid_activewindow && v_hwgamma.integer)
&& v_gamma.value == cachegamma
{
vid_usinghwgamma = false;
Cvar_SetValueQuick(&vid_hardwaregammasupported, VID_SetGamma(vid_systemgammaramps, vid_gammarampsize));
+ // force gamma situation to be reexamined next frame
+ gamma_forcenextframe = true;
}
}