Fix some r_scene_multithreaded related bugs

This commit is contained in:
Magnus Norddahl 2021-02-11 06:31:30 +01:00 committed by Rachael Alexanderson
commit fb87f90d86
3 changed files with 18 additions and 9 deletions

View file

@ -262,8 +262,7 @@ namespace swrenderer
{
RenderTranslucentPass *translucentPass = thread->TranslucentPass.get();
short portalfloorclip[MAXWIDTH];
int x2 = wallc.sx2;
for (int x = wallc.sx1; x < x2; x++)
for (int x = x1; x < x2; x++)
{
if (translucentPass->ClipSpriteColumnWithPortals(x, this))
portalfloorclip[x] = mceilingclip[x];