mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-26 05:01:36 +00:00
- fixed: A sprite having a picnum was not animating its image in the hardware renderer.
This commit is contained in:
parent
75a65873e7
commit
755cbd341b
1 changed files with 4 additions and 1 deletions
|
@ -819,7 +819,10 @@ void GLSprite::Process(AActor* thing, sector_t * sector, int thruportal)
|
||||||
// [ZZ] add direct picnum override
|
// [ZZ] add direct picnum override
|
||||||
if (isPicnumOverride)
|
if (isPicnumOverride)
|
||||||
{
|
{
|
||||||
patch = thing->picnum;
|
// Animate picnum overrides.
|
||||||
|
auto tex = TexMan(thing->picnum);
|
||||||
|
if (tex == nullptr) return;
|
||||||
|
patch = tex->id;
|
||||||
mirror = false;
|
mirror = false;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue