- fixed setup of content ID in CreateTexBuffer.

This commit is contained in:
Christoph Oelckers 2020-04-13 14:55:16 +02:00
parent e92be97f33
commit 3e02121822

View file

@ -669,6 +669,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) translation = remap->Index;
FBitmap bmp(buffer, W * 4, W, H); FBitmap bmp(buffer, W * 4, W, H);
int trans; int trans;