- fixed sprite rendering being aborted if a sprite with invalid texture was encountered.

This commit is contained in:
Christoph Oelckers 2022-12-19 13:49:34 +01:00
parent c72f5e2242
commit ad0860f4bf

View file

@ -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;