mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-02 02:01:31 +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
|
@ -106,7 +106,7 @@ void FAnmTexture::ReadFrame(uint8_t *pixels, uint8_t *palette)
|
|||
uint8_t *source = (uint8_t *)lump.GetMem();
|
||||
|
||||
anim_t anim;
|
||||
if (ANIM_LoadAnim(&anim, source, lump.GetSize()) >= 0)
|
||||
if (ANIM_LoadAnim(&anim, source, (int)lump.GetSize()) >= 0)
|
||||
{
|
||||
int numframes = ANIM_NumFrames(&anim);
|
||||
if (numframes >= 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue