mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-23 04:22:24 +00:00
- fixed sprite rendering being aborted if a sprite with invalid texture was encountered.
This commit is contained in:
parent
c72f5e2242
commit
ad0860f4bf
1 changed files with 1 additions and 4 deletions
|
@ -281,10 +281,7 @@ void HWDrawInfo::DispatchSprites()
|
||||||
auto actor = tspr->ownerActor;
|
auto actor = tspr->ownerActor;
|
||||||
auto texid = tspr->spritetexture();
|
auto texid = tspr->spritetexture();
|
||||||
|
|
||||||
if (actor == nullptr || tspr->scale.X == 0 || tspr->scale.Y == 0)
|
if (actor == nullptr || tspr->scale.X == 0 || tspr->scale.Y == 0 || !texid.isValid()) continue;
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!texid.isValid()) return;
|
|
||||||
|
|
||||||
actor->spr.cstat2 |= CSTAT2_SPRITE_MAPPED;
|
actor->spr.cstat2 |= CSTAT2_SPRITE_MAPPED;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue