- fixed: CreateTexBuffer did not check the Inactive flag for the requested translation.

This commit is contained in:
Christoph Oelckers 2020-09-26 22:03:15 +02:00
parent 2f403efba2
commit f4c5a25a52
1 changed files with 1 additions and 0 deletions

View File

@ -357,6 +357,7 @@ FTextureBuffer FTexture::CreateTexBuffer(int translation, int flags)
memset(buffer, 0, W * (H + 1) * 4); memset(buffer, 0, W * (H + 1) * 4);
auto remap = translation <= 0 ? nullptr : GPalette.TranslationToTable(translation); auto remap = translation <= 0 ? nullptr : GPalette.TranslationToTable(translation);
if (remap && remap->Inactive) remap = nullptr;
if (remap) translation = remap->Index; if (remap) translation = remap->Index;
FBitmap bmp(buffer, W * 4, W, H); FBitmap bmp(buffer, W * 4, W, H);