mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-26 05:51:00 +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 texid = tspr->spritetexture();
|
||||
|
||||
if (actor == nullptr || tspr->scale.X == 0 || tspr->scale.Y == 0)
|
||||
continue;
|
||||
|
||||
if (!texid.isValid()) return;
|
||||
if (actor == nullptr || tspr->scale.X == 0 || tspr->scale.Y == 0 || !texid.isValid()) continue;
|
||||
|
||||
actor->spr.cstat2 |= CSTAT2_SPRITE_MAPPED;
|
||||
|
||||
|
|
Loading…
Reference in a new issue