mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- fixed setup of content ID in CreateTexBuffer.
This commit is contained in:
parent
e92be97f33
commit
3e02121822
1 changed files with 1 additions and 0 deletions
|
@ -669,6 +669,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) translation = remap->Index;
|
||||
FBitmap bmp(buffer, W * 4, W, H);
|
||||
|
||||
int trans;
|
||||
|
|
Loading…
Reference in a new issue