mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 15:01:41 +00:00
V_CheckGamma WILL get called before vid_gamma gets set in gl, so protect
against that circumstance.
This commit is contained in:
parent
fa99cb304b
commit
8fef64c064
1 changed files with 5 additions and 3 deletions
|
@ -272,10 +272,12 @@ V_CheckGamma (void)
|
|||
{
|
||||
static float oldgamma;
|
||||
|
||||
if (oldgamma == vid_gamma->value)
|
||||
return false;
|
||||
if (vid_gamma) { // might get called before vid_gamma gets set
|
||||
if (oldgamma == vid_gamma->value)
|
||||
return false;
|
||||
|
||||
oldgamma = vid_gamma->value;
|
||||
oldgamma = vid_gamma->value;
|
||||
}
|
||||
|
||||
vid.recalc_refdef = 1; // force a surface cache flush
|
||||
|
||||
|
|
Loading…
Reference in a new issue