Stop using validcount for sprites
This commit is contained in:
parent
cfe4c55973
commit
beae9a3dc7
4 changed files with 29 additions and 8 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue