- changed translation management so that the fonts also use translation IDs.

This commit is contained in:
Christoph Oelckers 2020-03-16 17:23:30 +01:00
commit 828cba13a1
17 changed files with 63 additions and 98 deletions

View file

@ -317,15 +317,8 @@ bool FHardwareTexture::BindOrCreate(FTexture *tex, int texunit, int clampmode, i
{
int usebright = false;
if (translation <= 0)
{
translation = -translation;
}
else
{
auto remap = TranslationToTable(translation);
translation = remap == nullptr ? 0 : remap->GetUniqueIndex();
}
auto remap = TranslationToTable(translation);
translation = remap == nullptr ? 0 : remap->GetUniqueIndex();
bool needmipmap = (clampmode <= CLAMP_XY);