diff --git a/source/glbackend/gl_palmanager.cpp b/source/glbackend/gl_palmanager.cpp index c3f4a9840..e3fe51d0e 100644 --- a/source/glbackend/gl_palmanager.cpp +++ b/source/glbackend/gl_palmanager.cpp @@ -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 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; }