Add force redraw on change gamma

This commit is contained in:
Denis Pauk 2019-11-05 22:37:07 +02:00
parent 026a9b1d77
commit 9f5387ab29

View file

@ -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;