- used the wrong formula to calculate shadeDiv.

This commit is contained in:
Christoph Oelckers 2020-01-01 11:49:32 +01:00
parent d464017363
commit 7ec8368688

View file

@ -512,7 +512,7 @@ void GLInstance::SetPalette(int index)
void GLInstance::SetPalswap(int index)
{
palmanager.BindPalswap(index);
renderState.ShadeDiv = shadediv[index] == 0 ? 1.f / (renderState.NumShades) : shadediv[index];
renderState.ShadeDiv = shadediv[index] == 0 ? 1.f / (renderState.NumShades - 2) : shadediv[index];
}
void GLInstance::DrawImGui(ImDrawData* data)