Change RenderTranslucentPass to be a singleton

This commit is contained in:
Magnus Norddahl 2017-01-26 08:36:28 +01:00
commit 34f85569b4
8 changed files with 31 additions and 20 deletions

View file

@ -288,9 +288,11 @@ namespace swrenderer
if (x < x2)
{
RenderTranslucentPass *translucentPass = RenderTranslucentPass::Instance();
while (x < x2)
{
if (!RenderTranslucentPass::ClipSpriteColumnWithPortals(x, vis))
if (!translucentPass->ClipSpriteColumnWithPortals(x, vis))
R_DrawMaskedColumn(x, iscale, tex, frac, spryscale, sprtopscreen, sprflipvert, mfloorclip, mceilingclip, false);
x++;
frac += xiscale;