- removed the palette remapping in the lookup texture generators because it is no longer needed.

Fixes #396
This commit is contained in:
Christoph Oelckers 2020-09-14 21:54:29 +02:00
parent 42d4e112a1
commit 4485587088

View file

@ -119,15 +119,8 @@ IHardwareTexture* PaletteManager::GetLookup(int index)
{
auto p = screen->CreateHardwareTexture(1);
// Perform a 0<->255 index swap. The lookup tables are still the original data.
TArray<uint8_t> lookup(numshades * 256, true);
memcpy(lookup.Data(), lookups.getTable(index), lookup.Size());
for (int i = 0; i < numshades; i++)
{
auto p = &lookup[i * 256];
p[255] = p[0];
p[0] = 0;
}
p->CreateTexture(lookup.Data(), 256, numshades, 15, false, "PaletteLookup");
lookuptextures[index] = p;
}