Fix tonemap palette not being rebuilt on palette change

This commit is contained in:
Magnus Norddahl 2016-08-25 19:58:50 +02:00 committed by Christoph Oelckers
commit b1a0108a96
4 changed files with 11 additions and 0 deletions

View file

@ -310,6 +310,9 @@ void OpenGLFrameBuffer::UpdatePalette()
bb>>=8;
palette_brightness = (rr*77 + gg*143 + bb*35)/255;
if (GLRenderer)
GLRenderer->ClearTonemapPalette();
}
void OpenGLFrameBuffer::GetFlashedPalette (PalEntry pal[256])