mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 17:01:28 +00:00
- removed the palette remapping in the lookup texture generators because it is no longer needed.
Fixes #396
This commit is contained in:
parent
42d4e112a1
commit
4485587088
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue