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

@ -278,6 +278,12 @@ void FGLRenderer::BindTonemapPalette(int texunit)
}
}
void FGLRenderer::ClearTonemapPalette()
{
delete mTonemapPalette;
mTonemapPalette = nullptr;
}
//-----------------------------------------------------------------------------
//
// Apply lens distortion and place the result in the HUD/2D texture