|
|
@ -1670,26 +1670,23 @@ R_BeginFrame |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
void GAME_EXPORT R_BeginFrame( qboolean clearScene ) |
|
|
|
void GAME_EXPORT R_BeginFrame( qboolean clearScene ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
#if 0 // unused
|
|
|
|
if( R_DoResetGamma( )) |
|
|
|
if( R_DoResetGamma( )) |
|
|
|
{ |
|
|
|
{ |
|
|
|
gEngfuncs.BuildGammaTable( 1.8f, 0.0f ); |
|
|
|
gEngfuncs.BuildGammaTable( 1.8f, 0.0f ); |
|
|
|
// glConfig.softwareGammaUpdate = true;
|
|
|
|
|
|
|
|
// GL_RebuildLightmaps();
|
|
|
|
|
|
|
|
// glConfig.softwareGammaUpdate = false;
|
|
|
|
|
|
|
|
D_FlushCaches( ); |
|
|
|
D_FlushCaches( ); |
|
|
|
|
|
|
|
|
|
|
|
// next frame will be restored gamma
|
|
|
|
// next frame will be restored gamma
|
|
|
|
SetBits( vid_brightness->flags, FCVAR_CHANGED ); |
|
|
|
SetBits( vid_brightness->flags, FCVAR_CHANGED ); |
|
|
|
SetBits( vid_gamma->flags, FCVAR_CHANGED ); |
|
|
|
SetBits( vid_gamma->flags, FCVAR_CHANGED ); |
|
|
|
} |
|
|
|
} |
|
|
|
else if( FBitSet( vid_gamma->flags, FCVAR_CHANGED ) || FBitSet( vid_brightness->flags, FCVAR_CHANGED )) |
|
|
|
else |
|
|
|
|
|
|
|
#endif |
|
|
|
|
|
|
|
if( FBitSet( vid_gamma->flags, FCVAR_CHANGED ) || FBitSet( vid_brightness->flags, FCVAR_CHANGED )) |
|
|
|
{ |
|
|
|
{ |
|
|
|
gEngfuncs.BuildGammaTable( vid_gamma->value, vid_brightness->value ); |
|
|
|
gEngfuncs.BuildGammaTable( vid_gamma->value, vid_brightness->value ); |
|
|
|
//glConfig.softwareGammaUpdate = true;
|
|
|
|
|
|
|
|
// GL_RebuildLightmaps();
|
|
|
|
|
|
|
|
D_FlushCaches( ); |
|
|
|
D_FlushCaches( ); |
|
|
|
//glConfig.softwareGammaUpdate = false;
|
|
|
|
|
|
|
|
// next frame will be restored gamma
|
|
|
|
// next frame will be restored gamma
|
|
|
|
ClearBits( vid_brightness->flags, FCVAR_CHANGED ); |
|
|
|
ClearBits( vid_brightness->flags, FCVAR_CHANGED ); |
|
|
|
ClearBits( vid_gamma->flags, FCVAR_CHANGED ); |
|
|
|
ClearBits( vid_gamma->flags, FCVAR_CHANGED ); |
|
|
|