mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-04 19:20:43 +00:00
- texture manager fixes from GZDoom
* missing null check in FPngTexture. * ignore identity translations when creating textures.
This commit is contained in:
parent
f8ae35f8a5
commit
0314cdec55
5 changed files with 68 additions and 66 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue