Stop using validcount for sprites

This commit is contained in:
Magnus Norddahl 2017-02-04 20:32:06 +01:00
commit beae9a3dc7
4 changed files with 29 additions and 8 deletions

View file

@ -77,6 +77,10 @@ namespace swrenderer
if (x1 >= x2)
return;
// Reject sprites outside the slice rendered by the thread
if (x2 < thread->X1 || x1 > thread->X2)
return;
// [RH] Sprites split behind a one-sided line can also be discarded.
if (spr->sector == nullptr)
return;