mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-27 06:42:23 +00:00
Add force redraw on change gamma
This commit is contained in:
parent
026a9b1d77
commit
9f5387ab29
1 changed files with 4 additions and 0 deletions
|
@ -1406,6 +1406,10 @@ RE_BeginFrame( float camera_separation )
|
|||
{
|
||||
Draw_BuildGammaTable();
|
||||
R_GammaCorrectAndSetPalette((const unsigned char * )d_8to24table);
|
||||
// we need redraw everything
|
||||
VID_WholeDamageBuffer();
|
||||
// and backbuffer should be zeroed
|
||||
memset(swap_buffers + ((swap_current + 1)&1), 0, vid.height * vid.width * sizeof(pixel_t));
|
||||
|
||||
vid_gamma->modified = false;
|
||||
sw_overbrightbits->modified = false;
|
||||
|
|
Loading…
Reference in a new issue