From ad0860f4bf57f5ee4ed81e38c20e79c0fa3041b3 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 19 Dec 2022 13:49:34 +0100 Subject: [PATCH] - fixed sprite rendering being aborted if a sprite with invalid texture was encountered. --- source/core/rendering/scene/hw_drawinfo.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/source/core/rendering/scene/hw_drawinfo.cpp b/source/core/rendering/scene/hw_drawinfo.cpp index 97d623e51..6ef9dd4fc 100644 --- a/source/core/rendering/scene/hw_drawinfo.cpp +++ b/source/core/rendering/scene/hw_drawinfo.cpp @@ -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;