mirror of https://github.com/ZDoom/gzdoom.git
- fixed: CreateTexBuffer did not check the Inactive flag for the requested translation.
This commit is contained in:
parent
2f403efba2
commit
f4c5a25a52
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue