- 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

View file

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